Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/30/2024 11:41 AM
Hi I'm trying to import accounts from CyberArk from this URL: https://abc123/PasswordVault/api/Accounts?offset=0&limit=1000
I'm using below paginations:
paginations #1
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "limit",
"batchSize": 1000,
"totalCountPath": "20000"
}
}
paginations #2
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.done==true?null:'https://abc123/PasswordVault/'+response.completeResponseMap.nextLink}"
}
}
I used the above paginations but I can get all the accounts. I adjust the numbers in totalCountPath but it marked other accounts as suspended. Please help.
Solved! Go to Solution.
08/30/2024 12:08 PM
pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"
}
}
08/30/2024 12:19 PM
@jezzanuena
Try the below Snip.
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.nextLink == null) ? null : 'https://abc123/PasswordVault/' + response?.completeResponseMap?.nextLink}"
}
}
or
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"
}
}
08/31/2024 10:48 AM
Hi @jezzanuena ,
For your API call, below one should work
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"
}
If you decide to use CyberArk ootb connector, this works
"pagination": {
"offset": {
"offsetParam": "skip",
"batchParam": "take",
"batchSize": 100,
"totalCountPath": "completeResponseMap.total"
}
}
09/01/2024 10:25 AM
Hi @jezzanuena , try this
pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"
}
}
Using the same for cyberark rest connector
09/01/2024 11:40 PM
Thank you, all! It worked using the below:
"pagination": { "nextUrl": { "nextUrlPath": "${(response?.completeResponseMap?.nextLink == null) ? null : 'https://abc123/PasswordVault/' + response?.completeResponseMap?.nextLink}" } }
09/02/2024 06:09 AM
Can you share full json