Grant type ‘update:users’ not allowed for the client

I am trying to get OAuth Token for the application , which is required for updating user profile.

I am hitting this endpoint
domain/oauth/token

Curl

curl --location --request POST ‘domain/oauth/token’ \

–header ‘content-type: application/x-www-form-urlencoded’ \

–data-urlencode ‘grant_type=update:users’ \

–data-urlencode ‘client_id=’ \

–data-urlencode ‘client_secret=’ \

–data-urlencode ‘audience=domain/api/v2/’

I always get the grant type not allowed for the client.

{
“error”: “unauthorized_client”,
“error_description”: “Grant type ‘update:users’ not allowed for the client.”,
“error_uri”: “Application Grant Types
}

In Dashboard Settings I have enabled all the grant types for particular client.

Please help me to resolve this. Not sure what I am missing

For me its working now.
I was sending the data in form-URL-encoded.
When I send the data in the request body it worked, instead of form-url-encoded.

1 Like

Perfect! Thanks for sharing with the rest of community!

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