# How to add Organization's member role to the token?

**URL:** <https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [January 12, 2023, 6:32am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009 "2023-01-12T06:32:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupam.gupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anupam.gupta/32/33385_2.png) [@anupam.gupta](https://community.auth0.com/u/anupam.gupta)\
**Post date:** [January 12, 2023, 6:32am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/1 "2023-01-12T06:32:34Z")

</div>

Is there any way to add organisation member role to the token?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 13, 2023, 12:24am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/4 "2023-01-13T00:24:25Z")

</div>

Hi @anupam.gupta ,

I noticed that you created a support ticket for the same issue. Once the solution is available, I will post it on this topic. Hopefully, it can be helpful to other folks in our community.

---

<div class="post-metadata">

**Author:** ![Irenehicks](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/irenehicks/32/42517_2.png) [@Irenehicks](https://community.auth0.com/u/Irenehicks)\
**Post date:** [January 13, 2023, 5:21am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/5 "2023-01-13T05:21:10Z")

</div>

Yes, Go to the Navigate to Auth0 Dashboard \> Organizations, and select the organization for which you want to configure membership. Select the Members view, and select the name of the member to which you would like to add a role. Select Assign role. Enter the role name(s) you would like to assign to the member, and select Add role(s) to organization.

---

<div class="post-metadata">

**Author:** ![anupam.gupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anupam.gupta/32/33385_2.png) [@anupam.gupta](https://community.auth0.com/u/anupam.gupta)\
**Post date:** [January 13, 2023, 1:18pm UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/6 "2023-01-13T13:18:43Z")

</div>

Thanks @Irenehicks !

My question is specifically for enriching access token with member role information. How to do that in actions in post login flow?

---

<div class="post-metadata">

**Author:** ![ivo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivo/32/45714_2.png) [@ivo](https://community.auth0.com/u/ivo)\
**Post date:** [April 3, 2023, 10:27am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/9 "2023-04-03T10:27:08Z")

</div>

Has there been any resolution to this issue? This functionality would be very helpful and make our migration to Auth0 much simpler.

---

<div class="post-metadata">

**Author:** ![sean.mccamphill](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean.mccamphill/32/47723_2.png) [@sean.mccamphill](https://community.auth0.com/u/sean.mccamphill)\
**Post date:** [August 10, 2023, 9:58am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/10 "2023-08-10T09:58:58Z")

</div>

Hi All,

To do this, You can use _api.idToken.setCustomClaim(name, value)_ when using the Post Login Action as documented here: [Actions Triggers: post-login - API Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/api-object)

Thanks.

---

<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:** [August 24, 2023, 9:59am UTC](https://community.auth0.com/t/how-to-add-organizations-member-role-to-the-token/98009/11 "2023-08-24T09:59:37Z")

</div>

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