Search query to get users access

Hi Team,

I need a search query that returns the lift od entitlements the user has to a source.

For example source name is “xyz” i need all the ents that user has for this source

Hi @Deepanshu07 , you can get this from the accounts data, exported from the source.

Source Config → Accounts → Export

Ideal way you can download the Account Export from the source.
(or)
Search Query: @accounts(source.name:“Google Suite” AND entitlementAttributes.Groups:“*”)

Just replace the source name based on your source and Groups is the entitlement attribute in schema change it again based on your source’s entitlement attribute

Hi @Deepanshu07,

You can make use of the search API with innerhit to get the required info. Here is a sample request body :

{
    "indices": [
        "identities"
    ],
    "query": {
        "query": "jesvin.joseph",
        "innerHit": {
            "type": "access",
            "query": "source.name:Salesforce AND type:ENTITLEMENT"
        }
    }
}
1 Like

Here we need to put the display name:
“query”: “jesvin.joseph”?

You need to give the user’s unique ID.

If want to get this same type of data in workflow get access using search is it possible?

Hi @Deepanshu07,

You can make use of an HTTP call and pass the Search API parameters in it.

Hi @jesvin90,

If similarly we need to get access profiles instead of entitlements?