# Getting user roles from user\_id

**URL:** <https://community.auth0.com/t/getting-user-roles-from-user-id/132756>\
**Category:** Get Help\
**Tags:** management-api, roles\
**Created:** [April 25, 2024, 7:27am UTC](https://community.auth0.com/t/getting-user-roles-from-user-id/132756 "2024-04-25T07:27:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidplane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidplane/32/61188_2.png) [@davidplane](https://community.auth0.com/u/davidplane)\
**Post date:** [April 25, 2024, 7:27am UTC](https://community.auth0.com/t/getting-user-roles-from-user-id/132756/1 "2024-04-25T07:27:20Z")

</div>

> **[Identify Users](https://auth0.com/docs/manage-users/user-accounts/identify-users)**
>
> Learn how to uniquely identify users.

Using just the above user\_id retrieved from the session token, is it possible to get the roles of the user?

I’m already above to retrieve roles from the session token, but not sure how to do it in the backend with only the user\_id property

---

<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:** [April 25, 2024, 6:20pm UTC](https://community.auth0.com/t/getting-user-roles-from-user-id/132756/3 "2024-04-25T18:20:28Z")

</div>

Hi @davidplane,

You can get the user’s roles for a specific ID in the BE by calling the Management API’s [Get a user’s roles endpoint](https://auth0.com/docs/api/management/v2/users/get-user-roles).

Cheers,  
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:** [May 9, 2024, 6:20pm UTC](https://community.auth0.com/t/getting-user-roles-from-user-id/132756/4 "2024-05-09T18:20:42Z")

</div>

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