# Permission claim empty if logging on using Organization - still unresolved

**URL:** <https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845>\
**Category:** Get Help\
**Tags:** organizations-management-api, management-api\
**Created:** [January 10, 2023, 1:31pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845 "2023-01-10T13:31:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatrickHeneise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrickheneise/32/39821_2.png) [@PatrickHeneise](https://community.auth0.com/u/PatrickHeneise)\
**Post date:** [January 10, 2023, 1:31pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/1 "2023-01-10T13:31:54Z")

</div>

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

> [@Permission claim empty if logging on using Organization](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization/93287/1):
>
> 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

> 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:** [January 11, 2023, 7:56pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/3 "2023-01-11T19:56:03Z")

</div>

Hi @PatrickHeneise

Thanks for reaching out to the Auth0 Community!

> [@PatrickHeneise](#):
>
> 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.

My apologies for not getting back to you sooner. And yes, normally topics are automatically closed after 15 days from the last reply.

Now, after my investigation, I found that there were no issues with getting the permissions added to the access token when authenticating with Organizations.

I believe what happened involved the user only being assigned to those Permissions globally on their user profile (non-organization), instead of having them assigned as an Organization member. The difference is subtle, but it determines whether the Permissions claim is added to the access token.

For example:

- If we assign the user with the `read:reports` `update:reports` permissions to the user profile through the [Auth0 Dashboard \> User Management \> Users \> Roles](https://manage.auth0.com/#/users), then when authenticating through an organization, the access token **will not have these permissions**. It will have these permissions if the authenticating regularly without the `org_id`.

- If we assign the users with the `read:reports` `update:reports` permissions on the Members section of the [Auth0 Dashboard \> Organizations \> Members \> Assign Roles](https://manage.auth0.com/#/organizations), then when authenticating through an organization, the access token **will have these permissions**. It will not have these permissions if authenticating regularly without the `org_id`.

I recommend following the steps outlined in our [Add Roles to Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/add-member-roles#auth0-dashboard) documentation.

I hope the explanation helps!

Please let me know if I can help you with anything else.  
Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![PatrickHeneise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrickheneise/32/39821_2.png) [@PatrickHeneise](https://community.auth0.com/u/PatrickHeneise)\
**Post date:** [January 20, 2023, 6:55am UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/4 "2023-01-20T06:55:59Z")

</div>

Thanks Rueben! That was it. I didn’t realize there are two different permission/role implementations there.

---

<div class="post-metadata">

**Author:** ![tim.becker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tim.becker/32/37493_2.png) [@tim.becker](https://community.auth0.com/u/tim.becker)\
**Post date:** [January 20, 2023, 8:42pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/5 "2023-01-20T20:42:10Z")

</div>

Thank you for the explanation! We ran into the same issue.

Like you said, the difference is subtle, and I would argue **non-intuitive**. I think I understand why there needs to be a difference, but **I think you need to surface it in the documentation and console more clearly.**

The console uses this language for roles: “List of roles this user has.” It’s reasonable to think those apply when they log in using an organization as well. Below is a screenshot from your documentation, for permissions rather than roles.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/5/15e2f0651e0c7fde7de4f99639f07e28cc2c5481.png)

None of this documentation mentions it:

- [Assign Roles to Users](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/rbac-users/assign-roles-to-users)
- [Add Roles to Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/add-member-roles#auth0-dashboard) (the one you linked, which I think especially should mention these are different than the global roles)
- [Business to Business](https://auth0.com/docs/get-started/architecture-scenarios/business-to-business) guide, which talks a lot about Organizations. Would be useful to mention here.

Thank you for the thorough explanation!

---

<div class="post-metadata">

**Author:** ![paul.wilson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/paul.wilson/32/42914_2.png) [@paul.wilson](https://community.auth0.com/u/paul.wilson)\
**Post date:** [January 23, 2023, 12:54pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/6 "2023-01-23T12:54:00Z")

</div>

Hi,

I agree. I’ve just encountered the same issue and thankfully I found the answer here otherwise I’d have struggled.

---

<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 27, 2023, 5:10pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/7 "2023-01-27T17:10:33Z")

</div>

Linking to the documented FAQ found here:  
[https://community.auth0.com/t/organization-permissions-claim-empty/99135](https://community.auth0.com/t/organization-permissions-claim-empty/99135)

---

<div class="post-metadata">

**Author:** ![tim.becker](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tim.becker/32/37493_2.png) [@tim.becker](https://community.auth0.com/u/tim.becker)\
**Post date:** [February 3, 2023, 5:09pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/8 "2023-02-03T17:09:42Z")

</div>

We use both Native Applications for internal tools and SPAs for our web apps, and it doesn’t look like Organizations are supported on ~~Native Applications yet~~. (EDIT: it’s Device Authorization flow that isn’t supported, not Native Applications)

For that reason, and to avoid this confusion, I am trying to write an Action that keeps global roles in sync with organization roles. I am guessing nothing like this exists yet, but it would be really useful if there’s an existing extension or option that would do this automatically. Is there?

---

<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:** [February 7, 2023, 6:47pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/9 "2023-02-07T18:47:51Z")

</div>

Hi @tim.becker,

> [@tim.becker](#):
>
> We use both Native Applications for internal tools and SPAs for our web apps, and it doesn’t look like Organizations are supported on Native Applications yet.

Using Organizations in Native Applications should be possible. I recommend checking out our [Organization Limitations](https://auth0.com/docs/manage-users/organizations/organizations-overview#limitations) documentation for the complete list of limitations.

> [@tim.becker](#):
>
> For that reason, and to avoid this confusion, I am trying to write an Action that keeps global roles in sync with Organization roles. I am guessing nothing like this exists yet, but it would be really useful if there’s an existing extension or option that would do this automatically. Is there?

That’s a great idea to use an Action script to sync the global and Organization roles 👏!

And that is correct, there currently isn’t an extension that can keep the global and Organization roles in sync. Because they are distinct Roles referring to different scenarios, the best option to keep them in sync is using a Post-Login Action as you have found.

Thanks,  
Rueben

---

<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:** [February 21, 2023, 6:48pm UTC](https://community.auth0.com/t/permission-claim-empty-if-logging-on-using-organization-still-unresolved/97845/10 "2023-02-21T18:48:11Z")

</div>

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