Saved Search Queries

Hi all.

We are scheduling saved search to send out report but we are having issues to include certain columns to be included in the report generated. The report to be sent is expected to include a list of identities with newly created AD accounts along with certain identity attributes and the AD entitlements (memberOf).

The following code is an example:

"indices": [
"query": "@accounts(created:[now-24h TO now] AND\"AD-SOURCE\")",
"columns": {
    "identity": [
            "field": "attributes.uid",
            "header": "ID"
            "field": "attributes.fullName",
            "header": "Full Name"

In the POST /v3/search API, we noticed it return the “entitlementAttributes” in the accounts list object for each identity. However, in the POST /v3/saved-searches API, we want to include the entitlements as well using the “columns” attribute to be included in the report sent but were not able to find out the ways.

As an alternative, we also thought of creating identity attribute to read from the memberOf attribute, however it seems that identity attribute does not support multivalued attribute and thus only reading the first AD Group in the attribute, and ignore the rest. I think that for this way to work, it will be to find out a way to concat all AD Groups and make it as a static string.

Appreciate any input on this matter. Thanks!

Hi. I found out a way after referring to this documentation Identity Attribute Context in Transforms | SailPoint Developer Community.

My current transform script applying to the attribute which is to be included in the report is as follows.

    "type": "static",
    "attributes": {
        "value": "#foreach($account in $identity.getLinksByAppIdOrName(\"123456\",null))#if($foreach.index + 1 != $identity.getLinksByAppIdOrName(\"123456\",null).size())$account.getEntitlementAttributes().getString(\"memberOf\"),#else$account.getEntitlementAttributes().getString(\"memberOf\")#end#end"

Identity attribute example value:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.