# Receive User Role Details

**URL:** <https://community.auth0.com/t/receive-user-role-details/68228>\
**Category:** Get Help\
**Created:** [August 19, 2021, 10:40am UTC](https://community.auth0.com/t/receive-user-role-details/68228 "2021-08-19T10:40:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurent512](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/laurent512/32/31235_2.png) [@laurent512](https://community.auth0.com/u/laurent512)\
**Post date:** [August 19, 2021, 10:40am UTC](https://community.auth0.com/t/receive-user-role-details/68228/1 "2021-08-19T10:40:10Z")

</div>

Hello,

First of all, please apologize for the basic question. My current understanding of auth mechasnisms and Auth0 is shallow.

I am developing a website with user role based features ( e.g. admin panel)

Would there be a way to include the ‘roles’ that I have assigned to specific users in the token emitted by Auth0 ?

I have been through previous thread , mentionning about custom “rules” but topic is now closed and I could not make it work.  
Would someone be able to support me in this task? 🙂

Thank you so much in advance.

---

<div class="post-metadata">

**Author:** ![laurent512](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/laurent512/32/31235_2.png) [@laurent512](https://community.auth0.com/u/laurent512)\
**Post date:** [August 19, 2021, 11:10am UTC](https://community.auth0.com/t/receive-user-role-details/68228/2 "2021-08-19T11:10:44Z")

</div>

I followed this tutorial : [Login Flow](https://auth0.com/docs/actions/triggers/post-login#add-user-roles-to-tokens)

 ![Capture](https://global.discourse-cdn.com/auth0/original/3X/6/f/6f01db4cef5a67aa773f0c03daea4ce33b137d4f.png)  
And finally enabled the custom action here :  
 ![Capture2](https://global.discourse-cdn.com/auth0/original/3X/2/1/21a3b2dc681ac9bac7d7647208a919faadc44030.png)

But as a result, in my received token I don’t see any role element  
 ![Capture3](https://global.discourse-cdn.com/auth0/original/3X/9/b/9bffca9fea564f4124aa1f8daf177eb6da9a26c2.png)

---

<div class="post-metadata">

**Author:** ![laurent512](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/laurent512/32/31235_2.png) [@laurent512](https://community.auth0.com/u/laurent512)\
**Post date:** [August 19, 2021, 11:57am UTC](https://community.auth0.com/t/receive-user-role-details/68228/3 "2021-08-19T11:57:54Z")

</div>

Solution found, i was on the wrong tenant \>.\<

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 20, 2021, 9:14am UTC](https://community.auth0.com/t/receive-user-role-details/68228/4 "2021-08-20T09:14:20Z")

</div>

Perfect! Glad to hear that!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:21am UTC](https://community.auth0.com/t/receive-user-role-details/68228/5 "2021-08-26T09:21:08Z")

</div>


