Hi everyone,
I’m using a scheduled workflow in ISC and calling the Search API through the HTTP workflow operation to retrieve all active identities.
My environment has about 6000 active users, but my workflow is only returning 250 identities.
This is the API I’m calling:
POST https://companytenant-sb.api.identitynow.com/v3/search
Request body:
{
"indices": ["identities"],
"query": {
"query": "attributes.cloudLifecycleState:active"
},
"queryResultFilter": {
"includes": ["id", "displayName", "email"]
}
}
My goal is to make sure the workflow processes all active identities, not just the first 250.
From what I’ve found, Search can return only the default first page unless pagination is handled explicitly, and recent SailPoint guidance indicates that if you are only getting 250 results you may need to pass a limit value and then page through the remaining results. SailPoint’s standard collection docs say the Search endpoint supports up to 10,000 records per page, while community guidance also notes that 250 is what many users are currently seeing by default if limit is not specified.
What I’m trying to understand is:
-
What is the correct way to paginate
/v3/searchinside a workflow HTTP action? -
Should I be using
limitandoffset, or is there a better pagination method for Search in workflows? -
If the workflow has to loop through pages, what is the recommended pattern to continue calling Search until all records are returned?
-
Has anyone successfully retrieved thousands of identities in a single scheduled workflow run using the HTTP action?
If helpful, I’d also appreciate an example of:
- the full HTTP request including pagination parameters
Thanks in advance.
