Workflow Get List of Identities (action)

Hello folks,

I’m trying to build this below workflow which will send the email to the Manager and user based on the search query results. I’m facing the below issue as the the “Get List of Identities” is returning me the entire Identity object(including Access). Within the loop I’m trying to get the Identity with the below variable

$.loop.context.getListOfIdentities.identities[0].id → this is returning me with same single identity everytime.

Is there other option to get identity everytime the loop runs and pulls different identity?

FYI, I tried with this $.loop.context.getListOfIdentities.identities.id still no luck.

Thanks

Try using $.loop.loopInput.context.id in the Get Identity step inside the loop.

{{$.loop.loopInput.context.getListOfIdentities.identities[*].name}} will give you the name of Identity in loop.

2 Likes

Can you share a screenshot of how you configured the loop operator? The answer probably lies in what you provided for the input and the context.

here is the loop operator input

@sharvari I did try $.loop.loopinput.context.id but did not work.
@colin_mckibben, is this by design if we do Get List of Identities it gives the entire identity object including (Accounts, entitlements…)

Your loop is already setup to operate on each identity that is returned by “Get List of Identities”. There should be no need to have “Get Identity” inside your loop, as it will effectively just get the same information that is already provided. To access the identity information within the loop, you just use this JSONpath:

$.loop.loopInput

You can read more about loops here:

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