# Including organization member' permission in the IdToken

**URL:** <https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 22, 2022, 3:19pm UTC](https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717 "2022-02-22T15:19:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheus.ferreira](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matheus.ferreira/32/35380_2.png) [@matheus.ferreira](https://community.auth0.com/u/matheus.ferreira)\
**Post date:** [February 22, 2022, 3:19pm UTC](https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717/1 "2022-02-22T15:19:15Z")

</div>

Hi folks,

I’m looking for a way to include Organization Members’ permissions inside the id token. Following this [thread](https://community.auth0.com/t/accessing-the-permissions-array-in-the-access-token/27559/10), I was able to include the user’s permissions, however as I’m using the Organization concept, what I need is actually the permissions from that user inside the Organization.

I’m not seeing any method in the Management API that I can use to accomplish that. If I go for the user’s permissions, every time my app assigns a role to a user inside an organization (member), I would need to assign the same role to the user outside the organization.

Also, when I enable the RBAC with permissions inside the access token, it uses the permissions from the organization. It can cause discrepancy if I have users’ permissions in the id token and organization users’ permissions in the access token.

---

<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 24, 2022, 1:11am UTC](https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717/3 "2022-02-24T01:11:19Z")

</div>

Hi @matheus.ferreira,

Welcome to the Auth0 Community!

I am looking into your inquiry and will get back to you as soon as I have updates.

Thank you.

---

<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 25, 2022, 12:37am UTC](https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717/4 "2022-02-25T00:37:07Z")

</div>

Hi @matheus.ferreira,

Thank you for your patience.

After looking into this further, there are some things I would like to address.

First, the permissions assigned to a user are not dependent on an Organization, but rather on the API; Meaning that they are separate from one another.

Moreover, the [thread](https://community.auth0.com/t/accessing-the-permissions-array-in-the-access-token/27559/9) you shared is the correct way to get the user’s permissions appended to the ID token. The proposed Rule will append the user’s permissions to the **ID token** for every user, regardless of their Organization status. With that said, I can confirm that this approach is correct.

Next, when enabling the _Add Permissions in the Access Token_ toggle in your API RBAC settings, it will append a _permissions_ claim in the **Access token** of the permissions assigned to the user. Recall that the user can be assigned from a list of permissions created for the API.

In this case, the access token would look something like the following:

```auto
{
  //Redacted claims for brevity
  "permissions": [
    "read:reports",
    "update:reports"
  ]
}

```

Circling back, I recommend using the Rule to append the user’s permission to your ID token.

I hope this addresses your concerns.

Please do not hesitate to reach out if you have any further questions.

Thank you.

---

<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:** [March 12, 2022, 12:37am UTC](https://community.auth0.com/t/including-organization-member-permission-in-the-idtoken/78717/5 "2022-03-12T00:37:59Z")

</div>

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