# Get user permissions in React SDK

**URL:** <https://community.auth0.com/t/get-user-permissions-in-react-sdk/74684>\
**Category:** Get Help\
**Tags:** react, auth0\
**Created:** [December 12, 2021, 10:13pm UTC](https://community.auth0.com/t/get-user-permissions-in-react-sdk/74684 "2021-12-12T22:13:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacks1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jacks1/32/33698_2.png) [@jacks1](https://community.auth0.com/u/jacks1)\
**Post date:** [December 12, 2021, 10:13pm UTC](https://community.auth0.com/t/get-user-permissions-in-react-sdk/74684/1 "2021-12-12T22:13:42Z")

</div>

I’m using the React SDK. I want to show or hide a link to an admin portal if the user has the permission adminportal:view. This seems like an incredibly basic thing to do but I’m unable to do it or find any code to do it online. I have no issues getting some of the user data like name, picture, etc. but I can’t get roles, permissions, or metadata. Any help would be greatly appericated.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 13, 2021, 9:23am UTC](https://community.auth0.com/t/get-user-permissions-in-react-sdk/74684/2 "2021-12-13T09:23:32Z")

</div>

Hey there!

Maybe that will be helpful:

> [@Auth0-React: Best way to get user role/permission data to render app components](https://community.auth0.com/t/auth0-react-best-way-to-get-user-role-permission-data-to-render-app-components/52241):
>
> Hello, I know this may have been addressed in certain forms, and I’m aware of the following tutorial: [Role-Based Access Control](https://auth0.com/blog/role-based-access-control-rbac-and-react-apps/#Role-Based-Access-Control--a-Better-Solution) However that tutorial doesn’t use the same library I’m using, auth0-react, and I’m not sure I want to re-do everything, unless I have to. Essentially I’m just curious as to the best way to get the Users Role, OR Permissions within the react application in order to display only relevant components. Does this need a custom rule? If so is there a rule template with this…

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2021, 3:23pm UTC](https://community.auth0.com/t/get-user-permissions-in-react-sdk/74684/3 "2021-12-22T15:23:45Z")

</div>


