Find members from organization with specific role

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 some inviable.

Hi @elton.nunes.sysmap,

The endpoint you describe doesn’t exist at this time. Can you let us know how you would use it? What is the use-case you are looking to support?

2 Likes

Hi @adam.housman

I would use it to list all members with specific Role. I do that today with Roles API (/api/v2/roles/{id}/users) that API I can list all users with RoleID=xxxxxx, but using Organizations I cant do the same thing.

The use-case is, Today I use RBAC feature of Auth0 to control permissions inside my application, I want start use Organizations because is perfect to us who has a B2B Application, today I need create one Role with tenant name, for example “company1:guest”, “company2:guest”, and etc…

Now with Organizations I can create only one Role “guest” and assign that of each member on each Organization that he joined, that feature is perfect to us :slight_smile: (thanks Auth0 for that).

With that idea, I want show to administrators of each Organization what users has each Role that assigned on Organization, the administrator of Organization in one frontend choose Role “guest” in one select(combobox), and I want list all users with “guest” Role on Organization. Is a simple query

The point is, I can do that using the Roles API (/api/v2/roles/{id}/users), but with Organizations feature I can’t :frowning:

Thanks for your reply,
Elton Nunes

Thanks for that, @elton.nunes.sysmap - makes perfect sense. I’m flagging this thread and will let you know at such a time as we implement this endpoint.

1 Like

Thank you @adam.housman

Perfect,
See’ya :slight_smile:

You can estimate to me which time will take ?, because this endpoint is important to my solution, but if you can’t, no problem, I will implement in my side something to resolve that.

Hi @elton.nunes.sysmap we don’t have a target release date for this right now.

1 Like

Ok, no problem @adam.housman

Thank you by replies, patience and for your help,

Congrats for your Team by excellent product :slight_smile: :+1:

See you later!
Elton Nunes

1 Like