Are there any available options to pull an identities role membership via API? In the documentation it looks like roles could be used in the attributes query, but I haven’t been able to get it to work. Can anyone help provide what the API call would look like if roles can be pulled for a specific identity?
I think whatever you looking for it is having in APIs lists. Maybe you can check this. If this is not going to useful, then you have to develop your own REST API to achieve it.
The query parameter “attributes” is used to retrieve a list of attributes from the user profile through API response object. You can find more details in the get-users | SailPoint Developer Community
Now, regarding potential solutions:
One option is to define your own custom REST endpoint.
A simpler approach, in my opinion, would be to develop a custom workflow. This workflow would take the role name as an input variable, calculate its members, and return the result. You can invoke this workflow via the API using the launch-workflow | SailPoint Developer Community