Performing a Search using API

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?

{
“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

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

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

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

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