Cannot update user's username

When updating a user’s username via Management API v2, but am receiving an error. I have a custom database with username required selected. For what it’s worth, updating the email address with the same endpoint is working fine.

REQUEST:

PATCH https://{tenant}.auth0.com/api/v2/users/{user_id}
{
“username”: “vaseki1”,
“connection”: “Username-Password-Authentication”
}

RESPONSE:

{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “get_user script does not exist”,
“errorCode”: “auth0_idp_error”
}

Resolved. I updated the Get User scripts to be a no-op: “return callback(null, null);” and clicked Save. Now the error has been resolved.

Resolved. I updated the Get User scripts to be a no-op: “return callback(null, null);” and clicked Save. Now the error has been resolved.

Glad you have it working!