<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
0D5KZ00000goOA10AMOkta Classic EngineAPI Access ManagementAnswered2025-04-22T16:15:32.000Z2025-04-17T05:31:40.000Z2025-04-22T16:15:32.000Z
API to get a list of standard administrator roles

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.

    Expand Post
    Selected as Best
  • 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.

    Expand Post
    Selected as Best
  • Thank you for your reply Mihai Negoita (Employee)

     

    GET /api/internal/privileges/admins 

    I would like to know the specifications of this API and would like to see the documentation, is there any documentation? If so, I would appreciate it if you could show me.

    • This is not currently a public API endpoint, as such it is not officially supported, but as far as I can see, getting the list with it works.

       

       

      Regards,

      Mihai N.

      -----------------------------------------------------------------

      Visit the Okta Community to search for solutions or ask questions.

      Level up your Identity security superpowers with Okta Learning.

      The new Okta Help Center YouTube channel is your go-to resource for tips, troubleshooting, and best practice videos. Subscribe today.

      Expand Post
This question is closed.
Loading
API to get a list of standard administrator roles