Auth0 permissions error: read:user_idp_tokens

Hi all

I keep getting this error:

access_denied: {"error":"access_denied","error_description":"Client has not been granted scopes: read:user_idp_tokens"}

I think it is Auth0 related, but I can’t seem to make sense of it? Any ideas? Has anyone else ever seen this?

Hi @derekm,

Thanks for reaching out to the Auth0 Community!

This error happens whenever your requesting Application (client) is missing the read:user_idp_tokens scope. This indicates that you have not granted your Management API that scope to the client you are trying to use.

In this case, you will need to navigate to your Auth0 Dashboard > Authentication > APIs > Auth0 Management API > Machine to Machine Applications > YOUR_APP and expand the list of permissions. On there, ensure that you have selected the read:user_idp_tokens permission (scope) and save your changes. See below:

Once that is done, you can make requests to the Management API endpoints that use this permission.

Please let me know if you have any further questions.

Thank you.