# Get ids of identities in an array

**URL:** <https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, identity-security-cloud\
**Created:** [April 28, 2025, 6:08pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582 "2025-04-28T18:08:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ugochuik](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ugochuik/32/29883_2.png) [@ugochuik](https://developer.sailpoint.com/discuss/u/ugochuik)\
**Post date:** [April 28, 2025, 6:08pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/1 "2025-04-28T18:08:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![suresh4iam](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/suresh4iam/32/29513_2.png) [@suresh4iam](https://developer.sailpoint.com/discuss/u/suresh4iam)\
**Post date:** [April 28, 2025, 6:20pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/2 "2025-04-28T18:20:05Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/c/d/cdaad62bd916c3549f64f4ca12558809b1441fd8.png)

---

<div class="post-metadata">

**Author:** ![ugochuik](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ugochuik/32/29883_2.png) [@ugochuik](https://developer.sailpoint.com/discuss/u/ugochuik)\
**Post date:** [April 28, 2025, 6:33pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/3 "2025-04-28T18:33:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![suresh4iam](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/suresh4iam/32/29513_2.png) [@suresh4iam](https://developer.sailpoint.com/discuss/u/suresh4iam)\
**Post date:** [April 28, 2025, 6:54pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/4 "2025-04-28T18:54:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ugochuik](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ugochuik/32/29883_2.png) [@ugochuik](https://developer.sailpoint.com/discuss/u/ugochuik)\
**Post date:** [April 29, 2025, 4:54pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/5 "2025-04-29T16:54:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [June 28, 2025, 4:54pm UTC](https://developer.sailpoint.com/discuss/t/get-ids-of-identities-in-an-array/116582/6 "2025-06-28T16:54:31Z")

</div>

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