PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

Saviynt API max data returned

Caesrob
Regular Contributor
Regular Contributor

We use reports to get back which entitlements a user has so we can this is in other implementations.

URL: https://XXX/ECM/api/v5/fetchControlDetailsES?analyticsid=1660&max=10000

This fetches the results of a report with currently 137 users in it. This works fine as we put the max on 10000.

But when we are moving to production we will have more than 50 000 users while the "max" parameter has a limit of 10 000 (according to Saviynt API documentation).

Is there a way to get all 50 000 users in the response at once? Or is there a way to get multiple pages of 10 000 users? if so, how do we get back every page?

 

2 REPLIES 2

Sivagami
Valued Contributor
Valued Contributor

Send offset as well in the request. This will give you subsequent page results.

https://XXX/ECM/api/v5/fetchControlDetailsES?analyticsid=1660&offset=0&max=10000

https://XXX/ECM/api/v5/fetchControlDetailsES?analyticsid=1660&offset=10001&max=10000

https://XXX/ECM/api/v5/fetchControlDetailsES?analyticsid=1660&offset=20001&max=10000

.....

Increment the offset until the result array is blank in the response.

"result": []

Hope this helps

-Siva

Caesrob
Regular Contributor
Regular Contributor

I noticed this after I made my post as well. But is there a way to automate it so it can be done in 1 call instead of making an unknown amount of calls for X amount of users?