<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
0D50Z00008G7UkgSAFOkta Classic EngineIntegrationsAnswered2025-06-14T10:29:51.000Z2016-05-12T15:01:17.000Z2017-07-15T17:20:14.000Z
How to get a list of roles in single request?
It seems that there is no way to get a list of roles configured on Okta.

As far as I understand, there is no possibility to create custom roles. Thus, there are only 5 predefined roles. But in order to get all these roles I have to iterate through all users like:

{{url}}/api/v1/users/{{userId}}/roles

 

Correct?

  • JP Manansala (Okta, Inc.)

    Hi Andriy,

     

    Thanks for posting your inquiry in Okta Community.

     

    You are definitely correct on your statement. We can list, assign and etc.. but not create custom roles in Okta.

     

    Please let me know if you need any additional information. Thank you.

     

    Best,

     

    JP
    Expand Post
This question is closed.
Loading
How to get a list of roles in single request?