API to get users who have a particular Access Profile

I am looking for some API to fetch the list of users who have requested or already have those particular Access profiles.

Hello @dbiswas20
Welcome to the community.

You can leverage the search API (Search | SailPoint Developer Community)with a query like one following to get users with a specific access profile:

@access(name:"All Alumnis" and type:ACCESS_PROFILE)

An example of payload could be:

{
    "query": {
        "query": "@access(name:\"All Alumnis\" and type:ACCESS_PROFILE)"
    },
    "indices": [
        "identities"
    ],
    "sort": [
        "displayName"
    ],
    "includeNested": true
}

To get pending access request, you may leverage the access request approvals :

2 Likes

Hello @dbiswas20
Does that answer your question?

can I get more detaills like with an example

for the above mentioned scenario