FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Managing User IDs in FusionAuth: Options for Addressing Incorrect Assignments

    Scheduled Pinned Locked Moved Solved
    Q&A
    integration
    1
    2
    671
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wesley
      last edited by

      We recently encountered an issue in our production environment. Is there a way to change the FusionAuth user ID of an existing user via an API endpoint or any other method?

      For example, we need to change the user ID eaccb343-1b62-4cc4-a9fb-0744a9da4812 to eb0ca123-e3f2-408a-b3e9-049e0b4e6d2e. Unfortunately, we have around 10,000 users with incorrect IDs and are exploring options, including modifying the logic on our end.

      1 Reply Last reply Reply Quote 0
      • W
        wesley
        last edited by

        Unfortunately, FusionAuth does not support changing a user’s ID after the user has been created.

        However, when creating users via API, you can specify a custom user ID at the time of creation. This allows you to control user IDs during the initial setup.

        API Reference:

        • Create a User API

        Since the IDs are already assigned, your best option might be to adjust your integration logic or recreate the users with the desired IDs.

        1 Reply Last reply Reply Quote 0
        • W wesley has marked this topic as solved on
        • First post
          Last post