<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008KDvWACA1Okta Classic EngineAPI Access ManagementAnswered2022-11-09T15:43:31.000Z2022-11-07T14:41:44.000Z2022-11-09T15:43:31.000Z

NivS.45786 (Customer) asked a question.

Getting the admins and their roles via Okta's API

Hi team,

I am trying to extract via the API the administrators in Okta and their roles (e.g: Super Administrator / Read-only Administrator etc).

 

In the UI it's under Security -> Administrators -> Admins

 

I have used the API call:

 

GET /api/v1/users/{user_id}/roles

 

For each user in the database (not efficient but couldn't find a better way, if there is please let me know)

 

However, it seems like only with Super Administrator roles I am able to get the data back which is weird.

 

Why it isn't possible to get these results with other roles such as "Read-only administrator"?

 

When trying with different roles I am getting the error - "You do not have permission to perform the requested action"

Error code - E0000006

Error ID - oae69BNYwYzS4q

 

Could you please help me with this?

 

Thanks!

 


This question is closed.
Loading
Getting the admins and their roles via Okta's API