How to get user and roles details based on a groups

I am explaining the manual steps first. Login to Orchestrator as admin → Admin → Accounts and Groups → Groups

Once we reach this page - we can see the list of groups created in orchestrator and the users assigned to each of these groups.

Kindly note that this is not at the tenant level. It is at the admin level

My requirement is to get these groups and associated users using API /Orchestrator APIs

1 Like

Hi, @Shaik_Rafi2

use the Orchestrator API endpoint /identity_/api/Groups to get all groups, then /identity_/api/Groups/{groupId}/users to fetch users in each group just authenticate and call these endpoints. This gives you the exact group and user.

Hi @Shaik_Rafi2

Please refer below post, it has all the details you need to make this call with just a little difference, it’s put operation in group, so instead you will do get operation.

Hope this helps.

Hi
You can get that data using the Organization-level (Admin API), not the Tenant-level one.

To list groups and their users, use:
Endpoint:

GET https://cloud.uipath.com/{organizationName}/identity_/api/Groups

Then, for each group, get the users:

GET

https://cloud.uipath.com/{organizationName}/identity_/api/Groups/{groupId}/Users

You’ll need an access token from the Identity service (scope: OR.Mgmt) to call these.

These APIs return exactly what you see under Admin > Accounts and Groups > Groups, including user assignments.

Check using orchestrator APIs - UiPath

@Shaik_Rafi2

Welcome to the community

you can use the below platform management api to get those details

cheers