# Issue with RBAC and Access Token Scopes in Auth0

**URL:** <https://community.auth0.com/t/issue-with-rbac-and-access-token-scopes-in-auth0/183623>\
**Category:** Get Help\
**Tags:** free-trial, login-experience\
**Created:** [March 10, 2025, 10:39am UTC](https://community.auth0.com/t/issue-with-rbac-and-access-token-scopes-in-auth0/183623 "2025-03-10T10:39:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FilipeBitwise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/filipebitwise/32/59920_2.png) [@FilipeBitwise](https://community.auth0.com/u/FilipeBitwise)\
**Post date:** [March 10, 2025, 10:39am UTC](https://community.auth0.com/t/issue-with-rbac-and-access-token-scopes-in-auth0/183623/1 "2025-03-10T10:39:48Z")

</div>

I am experiencing issues with Role-Based Access Control (RBAC) and access token scopes in Auth0 for my application, BoardMeeting.app. I have configured a user (secretary@boardmeeting.app) with restricted permissions to my API. This user has a “secretary” role configured in Auth0, which includes the “read:organizations” permission but not the “update:organizations” permission, which is assigned only to the “administrator” role.

**Steps to Reproduce:**

1. Configure a user (secretary@boardmeeting.app) with the “secretary” role in Auth0.
2. Assign the “read:organizations” permission to the “secretary” role.
3. Assign the “update:organizations” permission to the “administrator” role.
4. Use the Resource Owner Password Flow to obtain an access token with the following request:

```auto
POST https://{{Auth0Domain}}/oauth/token
Content-Type: application/json
{
  "grant_type":"password",
  "username":"secretary@boardmeeting.app",
  "password":"{{Auth0UserSecretaryPassword}}",
  "audience":"https://api.boardmeeting.app/api/",
  "scope":"profile email",
  "client_id":"{{Auth0WebappClientId}}",
  "client_secret":"{{Auth0WebappClientSecret}}"
}

```

**Observed Behavior:**

- When RBAC is enabled in the API, the access token returned does not include any API scopes:

```auto
{
  "access_token": "eyJhbGciOi...",
  "scope": "profile email",
  "expires_in": 86400,
  "token_type": "Bearer"
}

```

- When “Add permissions to the access token” is enabled, the access token still does not include the expected API scopes:

```auto
{
  "access_token": "...",
  "scope": "profile email",
  "expires_in": 86400,
  "token_type": "Bearer"
}

```

- When RBAC is disabled, the access token includes all scopes in the API, including those the user does not have!

```auto
{
  "access_token": "eyJhbG...",
  "scope": "profile email read:organizations update:organizations read:boards ...",
  "expires_in": 86400,
  "token_type": "Bearer"
}

```

**Expected Behavior:** The access token should include only the scopes assigned to the user’s role when RBAC is enabled and “Add permissions to the access token” is enabled.

Please advise on how to resolve this issue.

Thank you.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 31, 2025, 9:50pm UTC](https://community.auth0.com/t/issue-with-rbac-and-access-token-scopes-in-auth0/183623/3 "2025-03-31T21:50:18Z")

</div>

Hi @FilipeBitwise

Welcome to the Auth0 Community!

I apologize for not responding to you earlier. I’m checking your issue with our engineering team. I will update you soon regarding whether that’s something with the configuration or an issue on our side.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![wissem.bensidhoum](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wissem.bensidhoum/32/75799_2.png) [@wissem.bensidhoum](https://community.auth0.com/u/wissem.bensidhoum)\
**Post date:** [July 20, 2025, 12:40pm UTC](https://community.auth0.com/t/issue-with-rbac-and-access-token-scopes-in-auth0/183623/4 "2025-07-20T12:40:41Z")

</div>

(post deleted by author)
