# Permissions are empty on the token when authenticating into organization

**URL:** <https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369>\
**Category:** Get Help\
**Tags:** users, management-api, connections\
**Created:** [February 27, 2023, 1:17pm UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369 "2023-02-27T13:17:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![or12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/or12/32/44966_2.png) [@or12](https://community.auth0.com/u/or12)\
**Post date:** [February 27, 2023, 1:17pm UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369/1 "2023-02-27T13:17:51Z")

</div>

Hello,

Permission claim in token is empty when logging on to an application as an organization team member.  
I have assigned permissions to my user in organization “x” (for the API that sent as audience).  
When triggering to /authorize endpoint i have passed the “organization=x” query param and yet the permissions of the user in the organization is empty

RBAC is enabled and include permission in access token is enabled. for the organization the permission array is empty.

Is this a bug or is it intended?

Thank you,  
Or

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 28, 2023, 1:21am UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369/5 "2023-02-28T01:21:56Z")

</div>

Hi there @or12 and welcome to the community!

This is typically due to the fact the role/permissions has been assigned _globally_ as opposed to within the context of an organization - Please see the following FAQ for details:

[https://community.auth0.com/t/organization-permissions-claim-empty/99135](https://community.auth0.com/t/organization-permissions-claim-empty/99135)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![or12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/or12/32/44966_2.png) [@or12](https://community.auth0.com/u/or12)\
**Post date:** [February 28, 2023, 7:34am UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369/6 "2023-02-28T07:34:44Z")

</div>

No, i have assigned it within the context of an organization

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 1, 2023, 1:11am UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369/7 "2023-03-01T01:11:49Z")

</div>

Thanks for following up on this! I’ve just ran through this in my own test environment and can confirm that the permissions are added correctly. Here’s a look at the access token I’ve received:

```auto
{
  "iss": "https://domain.us.auth0.com/",
  "sub": "auth0|622bc00324299ee0f0",
  "aud": [
    "https://test-api-endpoint",
    "https://domain.us.auth0.com/userinfo"
  ],
  "iat": 1677632536,
  "exp": 1677632596,
  "azp": "5sFZ3AuJ05QEasdfUfQjMuVwiujzSqcG",
  "scope": "openid profile email offline_access",
  "org_id": "org_YZN9osfdsfN5R8",
  "permissions": [
    "create:appointments",
    "create:prescriptions",
    "delete:appointments"
  ]
}

```

Are you able to confirm that you receive the `org_id` as a claim in your access token and that the roles you added to a user within the context of an organization have permissions associated with them?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 20, 2023, 3:00pm UTC](https://community.auth0.com/t/permissions-are-empty-on-the-token-when-authenticating-into-organization/101369/8 "2023-03-20T15:00:16Z")

</div>

This topic was automatically closed after 10 days. New replies are no longer allowed.
