# Performing a Search using API

**URL:** <https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [March 19, 2025, 9:37am UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790 "2025-03-19T09:37:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![s\_tartaglione](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@s\_tartaglione](https://developer.sailpoint.com/discuss/u/s_tartaglione)\
**Post date:** [March 19, 2025, 9:37am UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/1 "2025-03-19T09:37:49Z")

</div>

Hello everyone, I’m using the “Perform Search API” to search a specific identity with a specific name,email and lastName, but i don’t find a way to search a specific account based also on these attributes because the indices that I can use to search don’t include the “accounts”. Do you have any suggestions based on your experience?

---

<div class="post-metadata">

**Author:** ![Tulasi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tulasi/32/34596_2.png) [@Tulasi](https://developer.sailpoint.com/discuss/u/Tulasi)\
**Post date:** [March 19, 2025, 10:44am UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/2 "2025-03-19T10:44:48Z")

</div>

{  
“indices”: [  
“identities”  
],  
“query”: {  
“query”: “firstName:john AND lastName:wick”,  
“fields”: [  
“firstName”,“lastName”  
]  
}  
}

I think the search will work fine in this way, if you already know the details of the particular identity

---

<div class="post-metadata">

**Author:** ![s\_tartaglione](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@s\_tartaglione](https://developer.sailpoint.com/discuss/u/s_tartaglione)\
**Post date:** [March 19, 2025, 10:46am UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/3 "2025-03-19T10:46:24Z")

</div>

Yes, but that will return the identity with that fields, what I have to do if I want search a specific account?

---

<div class="post-metadata">

**Author:** ![Tulasi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/tulasi/32/34596_2.png) [@Tulasi](https://developer.sailpoint.com/discuss/u/Tulasi)\
**Post date:** [March 19, 2025, 10:48am UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/4 "2025-03-19T10:48:43Z")

</div>

According to my knowledge , I don’t thinks we have a way to search for accounts in the ISC , I think they are still developing the Accounts as one of the indices for the search

---

<div class="post-metadata">

**Author:** ![rpriya](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rpriya](https://developer.sailpoint.com/discuss/u/rpriya)\
**Post date:** [March 19, 2025, 12:03pm UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/5 "2025-03-19T12:03:15Z")

</div>

To add, the following payload has identities in the indices, so it will search through identities but only return all accounts for the matched identities based on the queryResultFilter and given search query for firstname, lastname, or email:  
{  
“indices”: [  
“identities”  
],  
“query”: {  
“query”: “name:"ABC DEF"”,  
“fields”: [  
“name”  
]  
},  
“queryResultFilter”: {  
“includes”: [  
“accounts”  
],  
“excludes”: [  
“stacktrace”  
]  
}  
}  
SailPoint does not support accounts in the indices now, but let’s suppose it did. And if the search was performed using an email in the query, it would return all accounts with the same email, regardless of whether the account is from AD, Workday, or any JDBC source, etc., similar to the result obtained from the payload mentioned above

---

<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:** [May 18, 2025, 12:03pm UTC](https://developer.sailpoint.com/discuss/t/performing-a-search-using-api/104790/6 "2025-05-18T12:03:39Z")

</div>

Closed on May 18, 2025, 12:03pm UTC

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