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

CyberArk Pagination issue

jezzanuena
Regular Contributor II
Regular Contributor II

Hi I'm trying to import accounts from CyberArk from this URL: https://abc123/PasswordVault/api/Accounts?offset=0&limit=1000

jezzanuena_0-1725041743542.png

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.

 

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"
}
}


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

stalluri
Valued Contributor II
Valued Contributor II

@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')}"
}
}

 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

Amit_Malik
Valued Contributor II
Valued Contributor II

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

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

NM
Honored Contributor III
Honored Contributor III

Hi @jezzanuena , try this 

pagination": {

"nextUrl": {

"nextUrlPath": "${(response?.completeResponseMap?.get('nextLink')==null)? null : response?.completeResponseMap?.get('nextLink')}"

}

}

Using the same for cyberark rest connector


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

jezzanuena
Regular Contributor II
Regular Contributor II

Thank you, all! It worked using the below:

 

Spoiler
  "pagination": {
    "nextUrl": {
      "nextUrlPath": "${(response?.completeResponseMap?.nextLink == null) ? null : 'https://abc123/PasswordVault/' + response?.completeResponseMap?.nextLink}"
    }
  }

Can you share full json


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