# Access user roles with Auth0 Lock

**URL:** <https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980>\
**Category:** Get Help\
**Created:** [November 11, 2021, 12:26pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980 "2021-11-11T12:26:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emma.wegelid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emma.wegelid/32/12752_2.png) [@emma.wegelid](https://community.auth0.com/u/emma.wegelid)\
**Post date:** [November 11, 2021, 12:26pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980/1 "2021-11-11T12:26:52Z")

</div>

We would like to include user’s role(s) in response from lock.checkSession() or lock.getUserInfo(), is this possible?

Using auth0-lock-11.31.1.

---

<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:** [November 15, 2021, 10:32pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980/3 "2021-11-15T22:32:02Z")

</div>

Hi @emma.wegelid,

Welcome to the Auth0 Community!

Can you try adding the roles to the token? This resource demonstrates how to do that:

> **[Login Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow)**
>
> Learn about the Actions Login Flow and the post-login Action trigger, which is executed after a user logs in and when a Refresh Token is requested.

---

<div class="post-metadata">

**Author:** ![emma.wegelid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emma.wegelid/32/12752_2.png) [@emma.wegelid](https://community.auth0.com/u/emma.wegelid)\
**Post date:** [November 16, 2021, 4:12pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980/4 "2021-11-16T16:12:56Z")

</div>

@dan.woda That did the trick! Thanks a lot.

---

<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:** [November 16, 2021, 9:39pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980/5 "2021-11-16T21:39:25Z")

</div>

Great! Let us know if you have any other questions.

---

<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:** [December 1, 2021, 9:40pm UTC](https://community.auth0.com/t/access-user-roles-with-auth0-lock/72980/6 "2021-12-01T21:40:03Z")

</div>

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