Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/19/2023 02:19 AM
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?
09/19/2023 07:01 AM
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.
Hope this helps
-Siva
09/20/2023 12:33 AM
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?