# Retrieve user roles and permission on profile with nextjs

**URL:** <https://community.auth0.com/t/retrieve-user-roles-and-permission-on-profile-with-nextjs/92070>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [October 10, 2022, 12:30pm UTC](https://community.auth0.com/t/retrieve-user-roles-and-permission-on-profile-with-nextjs/92070 "2022-10-10T12:30:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 12, 2022, 12:17am UTC](https://community.auth0.com/t/retrieve-user-roles-and-permission-on-profile-with-nextjs/92070/3 "2022-10-12T00:17:58Z")

</div>

hey @barekliton welcome to the community!

You’ll need to explicitly add the roles to ID Tokens using an Action as outlined in the following FAQ:

[https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506](https://community.auth0.com/t/how-to-add-roles-and-permissions-to-the-id-token-using-actions/84506)

Permissions are a bit different, and are typically kept within the context of an access token. I recommend taking a look at [RBAC](https://auth0.com/docs/manage-users/access-control/rbac) as this provides you with the option (assuming you have an API registered in Auth0) to automatically add permissions to user’s access tokens.

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/retrieve-user-roles-and-permission-on-profile-with-nextjs/92070)._
