AllIT
(Anirban Singha)
1
Hello All,
- I have a search query based on certain conditions using the GetList of identities to retrieve the list of users.
- using a loop, and inside the loop, I use the GetIdentity method to fetch the attributes of the user.
- unable to pass the user’s identity in the HTTP method:
https://abc.com/v3/identities/{{$.getIdentity.id}}
Kindly let me know if I am using the correct way to pass the ID in the HTTP method.
Thanks,
markomanium
(Marko Mladenovic)
2
How does your loop input and context look like?
markomanium
(Marko Mladenovic)
3
Could u try this maybe:
In loop input put: $.getListOfIdentities.identities
in HTTP action, use:
https://abc.com/v3/identities/{{$.loop.loopInput.id}}
“Get Identity“ - this action can be removed
aghzere
(Youssef AGHZERE)
4
Hello @AllIT ,
The issue is in your API call :
With v2025 (or beta):
With v3 :
Actually, v3 doesn’t contain /identities (check here : V3 APIs | SailPoint Developer Community), but v2025 contains it ( Identities | SailPoint Developer Community )
Otherwise, {{$.getIdentity.id}} should work as it is inside the loop.
Finally, to get the identity id from the trigger into the GetIdentity inside the loop, put it in the loop context and use {{$.loop.context}} :
I hope this helps you solve the issue you’re facing, and let me know how it works for you.
Best Regards,
YA
AllIT
(Anirban Singha)
5
Thanks @aghzere , for your input
AllIT
(Anirban Singha)
6
Thanks @markomanium , it worked