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

REST ImportAccountEntJSON Pagination

mgandr
New Contributor III
New Contributor III

I have the below results from Postman. However, when I added the below pagination and ran the account import job, no accounts were being imported. Could someone assist me with this? Thank you!

mgandr_0-1721988626395.png

 

"http": {
"url": "https://ABC.com/scim/v2/Users?scim_provisioned_only=false&include_inactive=true",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response.completeResponseMap.itemsPerPage < 51? null : 'https://ABC.com/scim/v2/Users?scim_provisioned_only=false&include_inactive=true&startIndex=' + Math.addExact(response.completeResponseMap.itemsPerPage, response.completeResponseMap.startIndex) + '&count=' + response.completeResponseMap.itemsPerPage}"
}
}

4 REPLIES 4

NM
Honored Contributor
Honored Contributor

Hi @mgandr can you share last page response. Plus for count you can give a constant value.

rushikeshvartak
All-Star
All-Star

Refer https://forums.saviynt.com/t5/identity-governance/rest-connector-offset-pagination/m-p/43765#M25645


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

mgandr
New Contributor III
New Contributor III

This has been fixed by including a count on the URL. 

Please share fixed json


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.