Auth0 Home Blog Docs

Update user email with API gives insufficient_scope

management-api
scopes
email
update-profile

#1

When I call /users/{userid} with PATCH and pass this data :

{
"email": NEW_EMAIL, 
"connection":"Username-Password-Authentication", 
"client_id": CLIENT_ID
}

it returns me :

{
    "statusCode": 403,
    "error": "Forbidden",
    "message": "You cannot update the following fields: email, connection, client_id",
    "errorCode": "insufficient_scope"
}

I checked all the scopes under “Auth0 Management API” -> "Scopes"
Can anybody help me on this ?


#2

You need to ensure you have obtained a valid access_token for the Management API, with the correct scopes requested. Take a look at the following document which explains this in further detail:

https://auth0.com/docs/api/management/v2/tokens


#3

I am facing with this issue too. I think I got a valid token which was returned by my android log cat. Have no idea.


#4

I am facing with this issue too. I think I got a valid token which was returned by my android log cat. Have no idea.


#5