Api to get the admin users

Dear team
Given a admin role (custom or Built in ) I should be able to get all the users and groups who have been assigned this role .
Do you have any single OKTA api for it ? I need to get this information programatically .

Looks like as of now the only option is 
1)Get all the list of users (/api/v1/users)
2)for each individual user get the roles (/api/v1/users/<user id>/roles)

Thanks and Regards
Akshar

Hi @akshar,
I would recommend using the Administrator Roles | Okta Developer API. You have the ability to query the following to achieve what you’re looking for I think:

1 Like