Using the ISC Cloud Beta REST API at /identities, I need to retrieve specific field information from selected identities. Rather than iterating through each identity to filter them, is there a filter option that allows me to directly select attributes where identityState is ‘Active’ and employeeType is ‘Regular’? Additionally, is there a way to specify in the response to only return certain fields, such as email and name, instead of including all attribute details?
Hi @vikasjain99999,
I don’t think it is possible with the /identities endpoint as it allows filtering only for a set of default attributes.
The best way to handle this would be by making use of the search API
Try with something like below in the body to get your desired output.
{
"indices": [
"identities"
],
"query": {
"query": "attributes.identityState:\"Active\" AND attributes.employeeType:\"Regular\""
},
"queryResultFilter": {
"includes": [
"name",
"email"
]
}
}
2 Likes
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.