Hi,
I’m having a problem recreating a user after I’ve deleted it. Basically, I’m trying to test/debug an issue we’re seeing related to how we create users. As part of the debugging process, I need to create and delete the user multiple times. I had been able to do this, but now I seem to be stuck with a message saying ‘user already exists’ even though it’s been deleted. I’ve confirmed it doesn’t exists by both using UI to search, and also doing an export of the users. email address in question doesn’t show up in either.
I presume it’s just got a little mixed by these repeat requests, so is there something I can do to purge/cleanse to resolve this issue?
For reference, logs also show successful delete, followed by create request saying ‘user already exists’.
Thank you in advance,
Noel
Hi @noelt.dolan,
Welcome back to the Auth0 Community!
What I would recommend in this case is to firstly check if the user exists using the GET /api/v2/users and GET /api/v2/users-by-email from the Management API. If you are not able to locate any instance of the particular user in any of the API calls, you can try to delete the user by email using the DELETE /api/v2/connections/{id}/users endpoint which should remove any reference of the user.
Additionally you can also check this article on the matter - “User Already Exists” Error When Creating New User, which presents a few troubleshooting steps.
Please let me know how this goes and if the issue resides afterwards as well!
Thanks,
Remus
Hi Remus,
Thanks for your reply, I found the answer in the troubeshooting steps. Basically, the user exists in an external database, and some custom setup that I wasn’t aware of was making a call to that DB before creating the auth0 user entry.
Thank you again,
Noel
1 Like
Hi @noelt.dolan,
You’re welcome anytime!
I’m glad you were able to solve this
Have a great one,
Remus