Auth0 Home Blog Docs

Is there a way to manually migrate a user?


#1

I have a user in my custom DB, and I don’t use automatic imports to this connection. I would like to create a user using the user endpoint in the Management API, however I can’t because:

  • I only have the user’s hash and not their real password
  • The user “already exists” since it’s checking my DB before creating a user.

How can I get Auth0 to just port over that same user without automatic migrations?


#2

:wave: @anonymous.coward we can import a single user using the endpoint https://auth0.com/docs/api/management/v2#!/Users/post_users , where the connection is the Auth0 database connection you are importing the user to, this does require a password during creation. Would setting a password that can be reset for the user work for you? We can also use Management API’s user import endpoint without specifying a password, and then after being imported the user can specify a new password by requesting a password reset to their email. Is this what you have tried already? Please let me know and we can try to explore further.


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.