Having the same issue with one of our users.
The user tried to reset password while it existed only in our database but not in Auth0. A password reset link was sent and was able to reset the password. There was however no Auth0 user visible.
To resolve this we decided to just try to delete the user from our end. Upon creating the user again the user was however allegedly already present in Auth0. The user cannot however be found in the list of users or when using the management API searching for that particular email: Retrieve Users with Get Users by Email Endpoint.
Thus we cannot manually connect it back to a database entry thus we cannot delete it with our existing API or in the Admin Dashboard.
The options I see:
- Succeed with deleting user by email through management API: Auth0 Management API v2. So far the “try” isn’t working and can’t quite get it the
curl
command working locally. Getting “401: Unauthorized” with message “Bad audience” locally and “401 Missing authentication” in the docs “Try” widget. - It’s already been at least 4 hours since I confirmed it didn’t work but maybe the user eventually turns visible?
- Some Auth0 personnel manually fixes the user? Or other magic solution?
- Somehow get the ID upon rejection and try to connect the database then? Note that this is implicitly already being done by checking for existing users before creating a new one. But as no user is found we try to create a new one. Resulting in an error which should be avoided.