Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

How to obtain role membership information through REST API

rakesh_iam
New Contributor
New Contributor

Hi All,

We are trying to fetch all users who are members of a role (Enterprise or Application role). We looked into Saviynt API docs and couldn't find any.

Kindly let us know on how to fetch the information.

2 REPLIES 2

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @rakesh_iam,

Have you tried to utilize "{url}}/ECM/{{path}}/getRoles"?

This API provides a way to retrieve the complete list of roles.

By making this API call, you can obtain both the list and specific information about all the roles that are linked to the user.

For Ref: https://documenter.getpostman.com/view/1797923/RWaLwo21#98691765-9b0b-4907-9c43-9d22331e4f93 

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

dgandhi
All-Star
All-Star

Below API can provide you with the required info:

In Body , roleQuery, give the name of the role for which you want to find the users.

dgandhi_0-1685472152175.png

 

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.