How to add create:users permission to the management apis access token

I’m trying to call the api /v2/users to create new user, however i receive insufficient permissions 403, because the get token api oauth/token has no sufficient scopes.

How to add the create:users permission to my management api ?

Hi @doaa.farouk07,

The create:users permission (scope) must be explicitly granted to the Machine-to-Machine Application that is requesting the Access Token for the Auth0 Management API. This is configured directly within the settings of your Machine-to-Machine Application in the Auth0 Dashboard.

Here, you can authorize the Management API and set the desired permissions.

You can learn more about this by following this link to our documentation:

If you have any further questions, please don’t hesitate to reach out.

Have a good one,
Vlad

Hi @vlad.murarasu ..

Thanks for your reply .. from which menu did you open the shared screen ..

I’m not able to find the API tab inside (Applications - Applications or Applications - APIs)

Thanks in advance

Hi @doaa.farouk07,

The API tab can be found inside the Applications → Applications for Regular Web Applications and Machine to Machine apps. Single Page Applications and Native apps can’t be authorized to use APIs for security reasons.

If you’re making one of these types of apps, you can create a Machine to Machine app to access the API and use your Single Page Application or Native app to access the API on behalf of the Machine to Machine app.

Have a good one,
Vlad