Get ids of identities in an array

I have a form with a drop down that I use to select multiple identities. How do i get the ids of these identities? When I see the output it has [Jane Doe Tom Brown]
How can I get the ids of these users? You see I plan to pass this to a webhook for a runbook. When the runbook finishes I plan to call another IDN workflow via external trigger and pass this [Jane Doe Tom Brown] then that workflow will create a governance group and put [Jane Doe Tom Brown] as members

You need to use Select Field (dropdown) in the form. Edit the dropdown, select Option Type = Search, Category = Identities, Attribute to Display = ID and Search Query = build your query to filter the identities based on your use case.

But how will the person selecting the identities from the drop down know which id belongs to whom? Which is why I selected displayname

As far as I know it is not possible in the form to pass the ID in the backend upon selecting the display name in the Form.
If possible, what I would do is showing an unique identifier like Employee ID in dropdown in the Form, using an additional SailPoint API call in the Webhook process to get the ID of an identity by using employee ID and pass it to actual webhook URL.

1 Like

If I make the dropdown (using a search query and showing displayname) one identity to select, then in the workflow I do a getIdentity card after and I do $.formdata.dropdown.id, I am able to get the identity.
The problem is if when it is multiple identities to select, Then that becomes an array in the format [Jane Doe Tom Brown]. I wonder if there is a way I loop through the array, get the identity (and id) and remake another array.
The Loop card is asynchronous so what you do within sort of stays within unless your action within is like a disconnect from a source. Just wonder if I can get the ids via a loop card and take the info out of the card?

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