Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

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}"
}
}

7 REPLIES 7

NM
Esteemed Contributor
Esteemed Contributor

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


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

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'.

pradeepv
New Contributor III
New Contributor III

Hi @mgandr 
I have the same requirement can you please share the working json.

Thank in advance.

mgandr
New Contributor III
New Contributor III

Here's the working JSON

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://ABC.com/scim/v2/Users?scim_provisioned_only=false&include_inactive=true&count=9999",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "internalId~#~char",
"name": "userName~#~char",
"displayName": "displayName~#~char",
"customproperty1": "name.givenName~#~char",
"customproperty2": "name.familyName~#~char",
"accounttype": "userType~#~char",
"customproperty5": "active~#~bool",
"customproperty3": "title~#~char",
"customproperty4": "timezone~#~char",
"customproperty6": "locale~#~char",
"customproperty7": "emails.value~#~char",
"customproperty8": "addresses.value~#~char"
}
}
}
}

[This post has been edited by a Moderator to fix the formatting.]

pradeepv
New Contributor III
New Contributor III

Thanks for the prompt response @mgandr appreciated!

You are not using the pagination? thanks