# Retriving user permission

**URL:** <https://community.auth0.com/t/retriving-user-permission/108781>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [June 7, 2023, 5:39pm UTC](https://community.auth0.com/t/retriving-user-permission/108781 "2023-06-07T17:39:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.alminana](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gabriel.alminana](https://community.auth0.com/u/gabriel.alminana)\
**Post date:** [June 7, 2023, 5:39pm UTC](https://community.auth0.com/t/retriving-user-permission/108781/1 "2023-06-07T17:39:40Z")

</div>

i am using Auth0.AuthenticationApi to authenticate users but i cant find how to get the permission for the user

---

<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:** [June 7, 2023, 11:19pm UTC](https://community.auth0.com/t/retriving-user-permission/108781/3 "2023-06-07T23:19:36Z")

</div>

Hey there @gabriel.alminana welcome to the community!

Are you able to elaborate a bit here what you mean by permissions and how you are assigning these to users?

The more detailed information you can provide the better, thanks!

---

<div class="post-metadata">

**Author:** ![gabriel.alminana](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@gabriel.alminana](https://community.auth0.com/u/gabriel.alminana)\
**Post date:** [June 8, 2023, 1:11pm UTC](https://community.auth0.com/t/retriving-user-permission/108781/4 "2023-06-08T13:11:53Z")

</div>

Hi, i have created an api on the dashboard with enable rbac and Add Permissions in the Access Token settings checked, then added 2 permission, then i create a new rol and assigned this 2 permission to the rol and then assigned the rol to the user.  
then i create a console app with .net full framework 4.7.2 and added the Auth0.AuthenticationApi package and used GetTokenAsync with a ResourceOwnerTokenRequest to retrive the user token, i was expecting to have the permission in the token.

---

<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:** [June 8, 2023, 11:22pm UTC](https://community.auth0.com/t/retriving-user-permission/108781/5 "2023-06-08T23:22:18Z")

</div>

Thanks for confirming!

> [@gabriel.alminana](#):
>
> then i create a console app with .net full framework 4.7.2 and added the Auth0.AuthenticationApi package and used GetTokenAsync with a ResourceOwnerTokenRequest to retrive the user token

Are you positive you are checking the Access token and not the ID token? The permissions array should be added to the Access token. Can you also confirm that you are passing the API identifier of the API you created in auth0 as the `audience` param when authorizing the user?

---

<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:** [June 30, 2023, 11:30pm UTC](https://community.auth0.com/t/retriving-user-permission/108781/6 "2023-06-30T23:30:46Z")

</div>

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