Internal Server Error when Attempting to Change Password

Problem statement

The following error occurs when trying to change a user’s password through the Dashboard UI:

“Error!API Error. Please contact support if the problem persists”

{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred","errorCode":"auth0_idp_error"}

Cause

This error was occurring because there was a username conflict where two users shared the same username within a database connection. The users were created before Auth0 began enforcing unique usernames.

Solution

If you have found that two user profiles share the same username and are running into this error, these are the options to resolve this:

  • Delete one of the users. Then change the password.
  • Change the username on one of the users so usernames are unique. Then change the password.