I have written custom db script that calls my BE api which returns user details and those details will be stored in auth0 under a particular user. The issue is when user enter credentials username and password i will send these details to my BE api which validates the user and sends the user details and user will be created in auth0 using that details but since i have enabled import users to auth0 different users having same email facing an issue while creating an users auth0 throws an error saying DB Login Custom script: imported user exists with email but i want to allow to create user when import users to auth0 is enabled even if different user is having same email in their details how to fix this issue.
Hi @rjvarun43
Welcome to the Auth0 Community!
Unfortunately, Auth0 Database connection only supports unique email addresses, hence why you are unable to import users with the same email. The only way where you could migrate those users would be to store them in a different Database connection.
Otherwise, you can post on our Feedback page regarding implementing this feature.
If you have any other questions, feel free to leave a reply!
Kind Regards,
Nik
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.