# Get organization role's users

**URL:** <https://community.auth0.com/t/get-organization-roles-users/72428>\
**Category:** Product Feedback\
**Tags:** organizations, api, roles\
**Created:** [November 1, 2021, 1:43pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428 "2021-11-01T13:43:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladimir.bulatovic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vladimir.bulatovic/32/30224_2.png) [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Post date:** [November 1, 2021, 1:43pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/1 "2021-11-01T13:43:12Z")

</div>

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 user.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 2, 2021, 10:08pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/2 "2021-11-02T22:08:55Z")

</div>

Hi @vladimir.bulatovic,

Thanks for creating this feature request!

---

<div class="post-metadata">

**Author:** ![david.reyes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.reyes/32/36681_2.png) [@david.reyes](https://community.auth0.com/u/david.reyes)\
**Post date:** [April 18, 2022, 4:03pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/3 "2022-04-18T16:03:58Z")

</div>

Hi we’re running into a similar issue with a similar use case for this particular endpoint/feature. I see that something similar has been brought up before.

I think possibly even adding a roles attribute to the `/api/v2/organizations/{id}/members` would be super helpful. The current work around is to request member roles for each member which isn’t scalable as member sizes begin to grow.

> [@Find members from organization with specific role](https://community.auth0.com/t/find-members-from-organization-with-specific-role/65626):
>
> Hi, When Organizations Feature is released we started to migrating some apis to enable us to use new feature In one specific task, I used that API(/api/v2/roles/{id}/users) to get all Users by Role. Today I need find all Members from Organization with specific role id/name. Like that: /api/v2/organizations/{id}/members/{role id/name} but that API don’t exists, someone can help us with that? or this is impossible today? Finding all members of organization and get permissions each of them is …

---

<div class="post-metadata">

**Author:** ![david.leyland](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.leyland/32/34432_2.png) [@david.leyland](https://community.auth0.com/u/david.leyland)\
**Post date:** [July 14, 2022, 10:39am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/4 "2022-07-14T10:39:28Z")

</div>

> [@david.reyes](#):
>
> I think possibly even adding a roles attribute to the `/api/v2/organizations/{id}/members` would be super helpful. The current work around is to request member roles for each member which isn’t scalable as member sizes begin to grow.

Plus 1 for this, ideally it would also be added as an attribute on `/api/v2/users`.

I’m not using organisations currently but my usecase is similar of wanting to display a table of users on a per connection basis with the user’s role as one of the table columns.

The current best workaround I’ve found is to first query for all roles with `/api/v2/roles` then call `/api/v2/roles/{id}/user` for each role since you can at least get 100 users per api call that way with pagination. This is awkward though as you then need to manually filter out the users which aren’t from the connection you’re interested in. It also makes it really easy to accidentally fall foul of the rate limiting on the management api.

---

<div class="post-metadata">

**Author:** ![btp-john.strickler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/btp-john.strickler/32/35128_2.png) [@btp-john.strickler](https://community.auth0.com/u/btp-john.strickler)\
**Post date:** [September 2, 2022, 3:19pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/5 "2022-09-02T15:19:39Z")

</div>

We also have a need for this feature. We use the organizations features (a lot) and love it so far. However, we frequently find limitations that are covered by the normal APIs (/users, /roles, etc) but are not carried over with support to organizations.

If we weren’t using organizations then we could use the `/roles/{id}/users` endpoint to get a list of users in a particular role. But with organizations, we have to first call `/organizations/:id/members` then iterate over **each** member with an additional call to `/organizations/{id}/members/{user_id}/roles` (yikes).

It’d be really great to have this functionality carried over in to the realm of organization endpoints! Cheers

---

<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:** [September 2, 2022, 3:58pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/6 "2022-09-02T15:58:22Z")

</div>

Thanks for the feedback @btp-john.strickler and welcome to the community, makes sense to me!

---

<div class="post-metadata">

**Author:** ![youreka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/youreka/32/39755_2.png) [@youreka](https://community.auth0.com/u/youreka)\
**Post date:** [October 10, 2022, 1:16am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/7 "2022-10-10T01:16:43Z")

</div>

I agree with all the aboves, roles should be passed as part of the user properties. Having to go fetch it individually is inconvenient.

---

<div class="post-metadata">

**Author:** ![kieranb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kieranb/32/35578_2.png) [@kieranb](https://community.auth0.com/u/kieranb)\
**Post date:** [November 24, 2022, 10:56am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/8 "2022-11-24T10:56:22Z")

</div>

Hi 🙂 Is there any update on this? We would also love to have this as its rather painful having to loop individually

---

<div class="post-metadata">

**Author:** ![nicole.ampersand](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicole.ampersand/32/33621_2.png) [@nicole.ampersand](https://community.auth0.com/u/nicole.ampersand)\
**Post date:** [January 28, 2023, 11:40pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/9 "2023-01-28T23:40:48Z")

</div>

Hi, are there any updates on this? It is unrealistic for our application to loop over every user and really need this feature if we’re going to utilize auth0 and organizations.

---

<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:** [January 30, 2023, 8:02am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/10 "2023-01-30T08:02:01Z")

</div>

Hey there!

We are reviewing those Feedback topics on a monthly basis and will be performing another round in a few days. Compared to other feature requests it wasn’t receiving enough votes that’s why we’ve been taking into account topics that received more votes. Will let you know once we have any communication on that front!

---

<div class="post-metadata">

**Author:** ![nicole.ampersand](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicole.ampersand/32/33621_2.png) [@nicole.ampersand](https://community.auth0.com/u/nicole.ampersand)\
**Post date:** [January 31, 2023, 8:10pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/11 "2023-01-31T20:10:28Z")

</div>

Hi Konrad, thank you for the update. Looking forward to hearing more!

---

<div class="post-metadata">

**Author:** ![vladimir.bulatovic](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vladimir.bulatovic/32/30224_2.png) [@vladimir.bulatovic](https://community.auth0.com/u/vladimir.bulatovic)\
**Post date:** [May 22, 2023, 12:06pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/12 "2023-05-22T12:06:40Z")

</div>

Hi @konrad.sopala, is there any update regarding this feature request?

---

<div class="post-metadata">

**Author:** ![igillis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/igillis/32/47951_2.png) [@igillis](https://community.auth0.com/u/igillis)\
**Post date:** [June 9, 2023, 2:32am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/13 "2023-06-09T02:32:34Z")

</div>

About to implement the same unfortunately. Have you run into rate limiting issues with this approach? Did you have to do any backoff/limit # of parallel requests?

---

<div class="post-metadata">

**Author:** ![dan15](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan15/32/46653_2.png) [@dan15](https://community.auth0.com/u/dan15)\
**Post date:** [June 9, 2023, 10:40am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/14 "2023-06-09T10:40:28Z")

</div>

Regularly hitting rate limiting due to missing roles in individual users. Had to build a cache, which is less than optimal.

Unless there’s an API change here, will be moving role management back into our own stack after moving it to Auth0 in the first place.

---

<div class="post-metadata">

**Author:** ![rafael-kennedy-IM](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rafael-kennedy-im/32/45885_2.png) [@rafael-kennedy-IM](https://community.auth0.com/u/rafael-kennedy-IM)\
**Post date:** [June 23, 2023, 8:04pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/15 "2023-06-23T20:04:14Z")

</div>

Just adding my +1, lacking this feature makes the entire concept of role management in Auth0 entirely unusable. An organization of any size needs to be able to list the roles that members have at some point. If the only way to do that is to iterate through the entire list of users and make a request, we’ll get ratelimited and take forever. It’s astonishing that this isn’t possible yet.

---

<div class="post-metadata">

**Author:** ![tthompson1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tthompson1/32/45813_2.png) [@tthompson1](https://community.auth0.com/u/tthompson1)\
**Post date:** [September 25, 2023, 3:15pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/16 "2023-09-25T15:15:57Z")

</div>

Any updates on this from the Auth0 team? This is a really must-have feature to avoid getting rate-limited…

---

<div class="post-metadata">

**Author:** ![azns](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/azns/32/59717_2.png) [@azns](https://community.auth0.com/u/azns)\
**Post date:** [September 25, 2023, 11:05pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/17 "2023-09-25T23:05:41Z")

</div>

This is definitely very much needed.

---

<div class="post-metadata">

**Author:** ![j.krabs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/j.krabs/32/51427_2.png) [@j.krabs](https://community.auth0.com/u/j.krabs)\
**Post date:** [October 4, 2023, 6:06am UTC](https://community.auth0.com/t/get-organization-roles-users/72428/18 "2023-10-04T06:06:33Z")

</div>

You should now be able to retrieve the member roles by using the “Get Members”-endpoint 🙂

> **[Auth0 Changelog](https://auth0.com/changelog#78X6urpiHJK6SY0fUw4zyh)**
>
> Advanced identity management can be very hard. Very often, unnecessarily hard. At Auth0 we want to change that, by simplifying as much as possible.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 18, 2023, 2:44pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/19 "2023-10-18T14:44:31Z")

</div>

7 posts were split to a new topic: [Error when trying to Get Organizations Role’s Users](https://community.auth0.com/t/error-when-trying-to-get-organizations-roles-users/118824)

---

<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:** [November 1, 2023, 2:44pm UTC](https://community.auth0.com/t/get-organization-roles-users/72428/20 "2023-11-01T14:44:54Z")

</div>

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