# Get user permissions derived from their organization roles

**URL:** <https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733>\
**Category:** Get Help\
**Tags:** management-api, roles\
**Created:** [April 14, 2023, 2:04pm UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733 "2023-04-14T14:04:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dane.wheeler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane.wheeler/32/36950_2.png) [@dane.wheeler](https://community.auth0.com/u/dane.wheeler)\
**Post date:** [April 14, 2023, 2:04pm UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/1 "2023-04-14T14:04:00Z")

</div>

I need to get a user’s permissions that are based on roles they are assigned within the context of a particular organization. There is a [Management API end point](https://auth0.com/docs/api/management/v2?_ga=2.146603572.165836409.1681311324-738204309.1654358873&_gl=1*1mrq9fd*rollup_ga*NzM4MjA0MzA5LjE2NTQzNTg4NzM.*rollup_ga_F1G3E656YZ*MTY4MTQ3NTIwMS4xMjIuMS4xNjgxNDc4NjkyLjYwLjAuMA..#!/Users/get_permissions) to get a user’s permissions that are assigned to a user _outside_ the context of an organization, but this endpoint does not return any permissions that a user may have as a result of a role assignment they have within an organization.

I am aware that organization-derived permissions can be made available in a user’s access token via RBAC settings. However, I need programmatic access to the permissions via an admin account (i.e. via the Management API).

I am also aware that one can derive these permissions “manually” by querying the user’s roles within the organization, then by querying the list of permissions for each role, but this is costly in terms of Management API rate limits/quotas.

**Is there a single end point that can be called to get a user’s permissions within an organization?**

PS: What I am ultimately trying to do is get access to a user’s organization-derived permissions from within an Auth0 Rule, Action, or Hook. As far as I know, the only way to get any of the permissions (but only the ones derived from roles assigned outside an org) is by calling the Management API.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 15, 2023, 12:11am UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/3 "2023-04-15T00:11:41Z")

</div>

Hi @dane.wheeler,

Thanks for reaching out to the Auth0 Community!

> [@dane.wheeler](#):
>
> Is there a single end point that can be called to get a user’s permissions within an organization?

Unfortunately, the Management API does not have a dedicated endpoint to get a user’s permissions in the context of an Organization.

This feature has already been on our feedback radar:

> [@Get organization role's users](https://community.auth0.com/t/get-organization-roles-users/72428):
>
> API endpoint to get all members associated with one role in the organization It would be useful to have one API endpoint that returns all organization members that have a specific role, just like endpoint /api/v2/roles/{id}/users but in the context of the organization. The use case is that we want to have a table with all organization members and their data and it would be very useful to have displayed user roles that we can get with one API request instead of sending one API request for one u…

If you have a moment, I recommend upvoting the feedback request since it works on a voting systems where feeback requests with higher upvotes leads to higher implementation priority.

For now, the only way to get this information is to make two separate calls to the Mangement API:

1. Call the Management API’s [Get the roles assigned to an organization member endpoint](https://auth0.com/docs/api/management/v2#!/Organizations/get_organization_member_roles) to get the Roles assigned to a user in the context of an Organization.
2. Then call the Management API’s [Get permissions granted by role endpoint](https://auth0.com/docs/api/management/v2#!/Roles/get_role_permission) to see the permissions assigned to those Roles.

I hope the explanation was clear!

Please do not hesitate to reach out if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![dane.wheeler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane.wheeler/32/36950_2.png) [@dane.wheeler](https://community.auth0.com/u/dane.wheeler)\
**Post date:** [April 15, 2023, 4:52am UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/4 "2023-04-15T04:52:49Z")

</div>

Thanks for your reply @rueben.tiow. Your two-step approach makes sense for how to solve this problem.

FYI, I did see this other feature request, and this endpoint would be useful for me for other reasons, but my endpoint request is slightly different: rather than providing a role and getting the users that belong to that role in a given organization, I am looking to provide a _user_ and getting the _permissions_ that belong to that user in a given organization. But I understand that your two-step solution above can accomplish this, it’s just that I’d rather be able to accomplish this in a single Management API call as opposed to a Management API call plus an additional Management API call for each role. (Maybe there’s a way to cache these calls to get permissions for each role without resorting to a Management API call each time?)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 17, 2023, 3:23pm UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/5 "2023-04-17T15:23:55Z")

</div>

Hi @dane.wheeler,

Thank you for your response and clarification.

> [@dane.wheeler](#):
>
> I am looking to provide a _user_ and getting the _permissions_ that belong to that user in a given organization. But I understand that your two-step solution above can accomplish this, it’s just that I’d rather be able to accomplish this in a single Management API call as opposed to a Management API call plus an additional Management API call for each role

In this situation, I recommend considering [creating a new feedback request](https://community.auth0.com/c/feedback/95) that asks to support an endpoint that can get the User’s permissions in the context of an organization.

I believe this would be a great feedback improvement request and simplify it to a single call to the Management API.

Please let me know if there is anything else I can do to help.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![dane.wheeler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane.wheeler/32/36950_2.png) [@dane.wheeler](https://community.auth0.com/u/dane.wheeler)\
**Post date:** [April 18, 2023, 6:19pm UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/6 "2023-04-18T18:19:42Z")

</div>

Hi @rueben.tiow, FYI I created this feature request [here](https://community.auth0.com/t/management-api-endpoint-to-retrieve-user-permissions-for-organization/104998).

---

<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:** [May 2, 2023, 6:20pm UTC](https://community.auth0.com/t/get-user-permissions-derived-from-their-organization-roles/104733/7 "2023-05-02T18:20:23Z")

</div>

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