Managing User IDs in FusionAuth: Options for Addressing Incorrect Assignments
-
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.
-
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:
Since the IDs are already assigned, your best option might be to adjust your integration logic or recreate the users with the desired IDs.
-