
竣平小.15031 (Customer) asked a question.
We're currently looking for a way to retrieve admin role assignments for our Okta users via the API.
We considered using the List all user role assignments endpoint, but due to the high volume of users, it's resulting in too many requests.
Is there an alternative API that allows us to get a list of standard admin roles along with the users assigned to each role, without querying each user individually?

Hi @竣平小.15031 (Customer) , Thank you for reaching out to the Okta Community!
Unfortunately there currently is no out-of-the-box solution for this.
I consulted my colleagues and someone suggested perhaps you could try calling the
GET /api/internal/privileges/admins
This will provide a list of all admins and their user ID’s, but not their roles.
Afterwards you can do a GET api/v1/users/{UserID}/roles to see if it helps.
In the meantime, You can suggest this as a Feature Enhacement on the Okta Community page by going to the Community→ Ideas tab. Features suggested in our community are reviewed and can be voted and commented on by other members. High popularity will increase the likelihood of it being picked up by the Product Team and it being implemented.
More details here.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.