# Angular dynamic menu based on roles

**URL:** <https://community.auth0.com/t/angular-dynamic-menu-based-on-roles/86769>\
**Category:** Get Help\
**Tags:** angular, auth0\
**Created:** [July 11, 2022, 6:45pm UTC](https://community.auth0.com/t/angular-dynamic-menu-based-on-roles/86769 "2022-07-11T18:45:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Latz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/latz/32/12776_2.png) [@Latz](https://community.auth0.com/u/Latz)\
**Post date:** [July 11, 2022, 6:45pm UTC](https://community.auth0.com/t/angular-dynamic-menu-based-on-roles/86769/1 "2022-07-11T18:45:58Z")

</div>

I would like to display menu item depending on user roles in an Angular application (without API and Backend).  
The login with auth0 works. I have created roles and permissions.

How do I get to the roles in angular-auth0?  
There are no roles in the token that is delivered in the function getAccessTokenSilently().  
Does anyone have an example of how I can read roles and display menu items according to permission?

---

<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:** [July 11, 2022, 11:40pm UTC](https://community.auth0.com/t/angular-dynamic-menu-based-on-roles/86769/4 "2022-07-11T23:40:42Z")

</div>

Hello @Latz welcome back to the community!

Please see the following FAQ on adding roles/Permissions to tokens:

[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)

Hope this helps!

---

<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:** [July 26, 2022, 11:40pm UTC](https://community.auth0.com/t/angular-dynamic-menu-based-on-roles/86769/5 "2022-07-26T23:40:56Z")

</div>

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