# Permission claim empty if logging on using Organization

**URL:** <https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287>\
**Category:** Get Help\
**Created:** [October 28, 2022, 6:56am UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287 "2022-10-28T06:56:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahvinden](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nahvinden/32/40399_2.png) [@nahvinden](https://community.auth0.com/u/nahvinden)\
**Post date:** [October 28, 2022, 6:56am UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/1 "2022-10-28T06:56:54Z")

</div>

Hello,

Permission claim in token is empty when logging on to an application as an organization team member.

When accessing the application as an individual, the permission claim is populated.

RBAC is enabled and include permission in access token is enabled. The permission claim exists in the token in both cases, however for the organization the permission array is empty.

Is this a bug or is it intended?

Thank you,  
Nils

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 28, 2022, 5:36pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/3 "2022-10-28T17:36:39Z")

</div>

Hi @nahvinden,

Welcome to the Auth0 Community!

I understand that you encountered issues populating the permissions claim in the token when logging in with an Organization.

After testing this myself, I was able to reproduce the same observations as you. That is, the permissions array is empty when logging in with an Organization.

I will follow up with our Engineering teams to see if this is a bug.

For now, one workaround is to create a Post-Login action to add the Permissions as a custom claim in the token.

To do so, I recommend using the [Management API in Actions](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947) to call the [Get a User’s Permission](https://auth0.com/docs/api/management/v2#!/Users/get_permissions) endpoint to include the permissions into the Token.

**Reference:**

- [How to add Roles and Permissions to the ID Token using Actions?](https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506#h-12-permissions-4)

I hope this helps!

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![nahvinden](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nahvinden/32/40399_2.png) [@nahvinden](https://community.auth0.com/u/nahvinden)\
**Post date:** [November 2, 2022, 10:23am UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/4 "2022-11-02T10:23:17Z")

</div>

Thanks a lot, @rueben.tiow!

Nils

---

<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:** [November 16, 2022, 10:24am UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/5 "2022-11-16T10:24:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 11, 2023, 7:56pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/6 "2023-01-11T19:56:52Z")

</div>

Hi all,

I am backward linking to the solution found here:

> [@Permission claim empty if logging on using Organization - still unresolved](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845):
>
> Permission claim in token is empty when logging on to an application as an organization team member. Unfortunately this ticket has been closed without a real solution/fix to the bug. It’s been 3 months and I’m facing the exact same issue. Would prefer a real fix than this workaround. Thanks Hello, Permission claim in token is empty when logging on to an application as an organization team member. When accessing the application as an individual, the permission claim is populated. RBAC is…

Thanks,  
Rueben
