"Sandbox Error: Not authorized" on email change

Hi All,

I am trying to update user email via the Management API, but I get error code 400 with "Sandbox Error: Not authorized" response.

I first get the token with "update:users" scope:

Then I use it to update user:

Note that if I use the same request but for password instead of email it works:

I am not sure what I am missing the Management API has the following scopes enabled for the application:

Can someone help?

Edit:
I also get the same error when I try to change the email via the Dashboard:
image

Hi @dimo.petkov,

Welcome to the Auth0 Community!

Are you using a custom database connection?

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