# Minimum scopes for the Auth0 Management API

**URL:** <https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497>\
**Category:** Get Help\
**Created:** [December 8, 2021, 4:56pm UTC](https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497 "2021-12-08T16:56:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgilman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dgilman/32/33608_2.png) [@dgilman](https://community.auth0.com/u/dgilman)\
**Post date:** [December 8, 2021, 4:56pm UTC](https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497/1 "2021-12-08T16:56:02Z")

</div>

I’ve created an application in Auth0. It’s been granted the `read:users` permission only. I’m using the application’s client id/client secret in a `client_credentials` exchange to call `/oauth/token` to get a token (requesting scopes `openid profile email`) and intend on calling `/api/v2/users/xxx` with that token to get user information.

However, when I go to request the token it is failing with `Client has not been granted scopes: openid, profile, email`. These scopes are not listed for the Auth0 Management API, at least in the web interface. I also don’t see anything in the API documentation about those scopes as well.

Is there something fundamentally wrong with what I’m doing? Or do one of the `read:` permissions grant me what I need.

---

<div class="post-metadata">

**Author:** ![dgilman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dgilman/32/33608_2.png) [@dgilman](https://community.auth0.com/u/dgilman)\
**Post date:** [December 8, 2021, 8:45pm UTC](https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497/2 "2021-12-08T20:45:07Z")

</div>

I guess I was just doing it wrong after all. When calling `/oauth/token` I was including a `scopes` field in the request, but you can omit it in the request and it’ll just return whatever scopes are granted to the client in the JWT it returns. Much less fuss.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 8, 2021, 9:08pm UTC](https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497/3 "2021-12-08T21:08:16Z")

</div>

Hi @dgilman,

Welcome to the Auth0 Community!

Thanks for following up! The opened, profile, and email scopes are for user-centric transactions. Because you are performing a M2M machine operation, you only need to include the scopes for that transaction. In your case, it sounds like you just need to read user info, and that would require the read:users scope.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2021, 9:08pm UTC](https://community.auth0.com/t/minimum-scopes-for-the-auth0-management-api/74497/4 "2021-12-23T21:08:55Z")

</div>

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