How to get a list of roles in single request? Skip to main content
https://support.okta.com/help/answers?id=906f0000000i0ejiak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Andriy HrytskivAndriy Hrytskiv 

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?
Jaypee ManansalaJaypee Manansala (Okta)
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