I have to move users that are linked to an azure ad connection in one tenant and move them into another tenant. For our application to stay synchronized, we have to preserve all of the IDs that the users were given in Auth0 when we migrate them to this new tenant. Here is what I have done thus far:
- Export users from the Azure AD connection in old tenant.
- Import those users into the new tenant as a Username/Database connection.
I need help with step 3. I have seen documents online but they all point to having a user “link” accounts. Is it possible to just load the same raw JSON from the old tenant into the new one? I was thinking of doing this with the SDK and trying it out. This way all the users could just be linked to the AD connection in the new tenant and keep their IDs. Appreciate any assistance that could be given here. Thank you!
EDIT: I tried the following using the API:
- Creating a user on the connection directly and got a “400: The connection does not support user creation through the API. It must either be a database or sms connection.”
- Import users to this tenant from the old one and I was able to do that successfully. However these users are only able to be imported as database username/password and not directly on to the AD connection. I attempt to update the user on to the connection and I get a “connection does not exist” error even though I can clearly see it even when I list the connections through the API on that same tenant.