Update a User : Failed Change Password : "Cannot read property 'n' of undefined"

Not working with valid user ID is passed and JSON body:

Response Body:
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Sandbox Error: undefined”

Dashboard Log:
Type: Failed Change Password
Description: Cannot read property ‘n’ of undefined

Please advise?

Hi @rec-x ,

Welcome to the Auth0 Community!

The body scripts you use looks correct to me. I tested this endpoint with Postman, and it works.

I am happy to look further into this if you can DM me the name of the tenant and the email of the user.


Hi @rec-x ,

Thank you for DM me your tenant and user email.

In your tenant, the Username-Password database connection has the custom database enabled. As per this article, only the following three fields can be updated using Management API for the custom database.

  • app_metadata
  • user_metadata
  • blocked

And If you need to update other user fields, you will need to do it directly in your database.

Hope this helps!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.