Workflow "GetAccess" Action - Search Option

Hi All,

We are trying to use the GetAccess Action to search for an AccessProfile/Role in IdentityNow.
it works fine if we search with id:GUId of the Access Profile (GUID is hardcoded).
When we try to pass the value of the id dynamically, it is not working. The data is getting treated as a string.

Scenario : Access Profiles are segregated by tags - Privileged/ Non Privileged. When a decision is made on a access request, we are planning to use the GetAccess action to check if the access profile is having a privileged tag or not

Sample Query: id:$trigger.requestedItemsStatus[0].id AND tags:“Priviledged”

In this scenario, $trigger.requestedItemsStatus[0].id is not evaluating and is being treated as a string

Any help on this regard or a alternate solution is appreciated. Thanks

Regards
Arjun

Hi Arjun,

In order to use inline variables in a text box, you must enclose your JSONpath with double curly braces. Try using the following string in the search query text box:

id:{{$.trigger.requestedItemsStatus[0].id}} AND tags:“Priviledged”

Hello Colin,

I tried it out, it is not working. We are getting 400 - Bad request error.

Regards
Arjun

Looks like a typo. I forgot to include the . in the $trigger path. Here is the correct query. I updated the first reply to be correct as well.

id:{{$.trigger.requestedItemsStatus[0].id}} AND tags:“Priviledged”

1 Like

Thank you so much Colin,

The query is working as expected.

Regards
Arjun