# How to get the roles a user is assigned to in the dashboard

**URL:** <https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202>\
**Category:** Get Help\
**Tags:** webauth, auth0js, roles\
**Created:** [April 16, 2020, 4:54pm UTC](https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202 "2020-04-16T16:54:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tnwanna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tnwanna/32/20548_2.png) [@tnwanna](https://community.auth0.com/u/tnwanna)\
**Post date:** [April 16, 2020, 4:54pm UTC](https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202/1 "2020-04-16T16:54:20Z")

</div>

I’ve seen a number of guides about assigning roles to the idToken based on some rules, but I’m just trying to read the role I manually assigned a user to in the dashboard (as in from going to Users & Roles \> Roles \> creating a role and assigning a user to it). I don’t want it to be based on any logic, I just want to be able to read _that_ role in my web client in some way, whether it’s in the user profile or idToken, or wherever its available. If there’s even an API specifically to get the roles, I could use that

I just can’t seem to find a way to do that

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 16, 2020, 9:23pm UTC](https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202/3 "2020-04-16T21:23:31Z")

</div>

@tnwanna,

Welcome to the Community!

Can you expand on what you mean by:

> [@tnwanna](#):
>
> I don’t want it to be based on any logic, I just want to be able to read _that_ role in my web client in some way, whether it’s in the user profile or idToken, or wherever its available

Have you looked at adding it to the token in a custom claim?

> **[Sample Use Cases: Rules with Authorization](https://auth0.com/docs/manage-users/access-control/sample-use-cases-rules-with-authorization)**
>
> Learn how to use rules with roles-based access control (RBAC). For use with our Authorization Core feature set.

---

<div class="post-metadata">

**Author:** ![tnwanna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tnwanna/32/20548_2.png) [@tnwanna](https://community.auth0.com/u/tnwanna)\
**Post date:** [April 17, 2020, 1:01pm UTC](https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202/4 "2020-04-17T13:01:37Z")

</div>

I found another post that linked to that same doc, but that was the solution. 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:** [May 2, 2020, 1:01pm UTC](https://community.auth0.com/t/how-to-get-the-roles-a-user-is-assigned-to-in-the-dashboard/41202/5 "2020-05-02T13:01:38Z")

</div>

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