Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/17/2024 10:23 AM
Hi,
We are using ADP for user import. We have defined the pagination as this,
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "limit",
"batchSize": 200,
"totalCountPath": "completeResponseMap.meta.totalNumber"
}
},
Still it is not picking up not more than 100 users.
How this can be fixed?
Regards,
Indranil
06/17/2024 12:26 PM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
06/17/2024 11:05 PM
Regards,
Indranil
06/17/2024 11:33 PM
Hi @indra_hema_95 , can you also share postman response.
06/17/2024 11:40 PM
The postman response is 200, which is fine but the problem is, it is only returning 100 records only. We are not using pagination in postman, we are using pagination in adp user import json in saviynt. And as per mentioned above in the post that is not working as expected.
Regards,
Indranil
06/18/2024 01:32 AM
Need to see the response for pagination.
07/02/2024 12:42 AM
Basically, we are hitting the URL in offset and limit type of pagination. At first, we are hittinghttps://accounts.adp.com/hr/v2/workers?offset=0&limit=100.
Then we are hittinghttps://accounts.adp.com/hr/v2/workers?offset=100&limit=100and so on.
So, this we are doing manually in postman iterating 100 users in offset, but saviynt should take care of this automatically in pagination section. The pagination in saviynt is:
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "limit",
"batchSize": 100,
"totalCountPath": "3000"
}
}
Since the totalCountPath(total number of users) is not coming in the API response, we have given the upper most limit of the total users present in ADP.
Once we run the import we only get first 100 users only, and we see this response in the logs:
2024-07-02T13:05:28+05:30-ecm-worker-rest.RestProvisioningService-quartzScheduler_Worker-9-dttdc-DEBUG-Calling Webservice Url - https://accounts.adp.com/hr/v2/workers?offset=0&limit=100 with httpParams - null
Saviynt is not able to fetch users after offset=0
Regards,
Indranil