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

Veracode Import

Co
New Contributor
New Contributor

Hi Team,

When I try to import accounts on ImportAccountEntJSON using pagination with both 

"nextUrlPath" and "page" methods from Veracode but none of them are working properly for me. I am either getting Inactivated on all the accounts or only getting the first 20 accounts imported (the first page).

This is the "page" method I was trying
    "page": {
      "pageSizeParam": "size",
      "pageSize": 20,
      "pageRecordCount": "20",
      "pageNumberParam": "page",
      "totalCountPath": "completeResponseMap.page.total_elements",
      "firstPageNumber": 0
    }

One of the "nextUrlPath" method I was trying
${response?.objectList?.size()>0?'https://api.veracode.com/api/authn/v2/users?page='+Math.addExact(response.completeResponseMap.page.n...}

Let me know if you need me to provide more info.

Thanks
Co
6 REPLIES 6

rushikeshvartak
All-Star
All-Star

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.‼️‼️⚠️

 

Also share full JSON


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

Hi @rushikeshvartak,

Please see below for info requested.

Annotation 2024-10-14 111302.pngAnnotation 2024-10-14 111721.png

ImportAccountEntJSON
_______________________________________________________________________
{
"accountParams": {
"connection": "acctAuth",
"createUsers": false,
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"listField": "_embedded.users",
"keyField": "accountID",
"statusConfig": {
"active": "true",
"inactive": "false"
},
"http": {
"url": "https://api.veracode.com/api/authn/v2/users?page=0&size=20",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"errors": [
"Couldn't authenticate you"
],
"errorPath": "http_status",
"colsToPropsMap": {
"accountID": "user_id~#~char",
"displayName": "#CONST#${return response.first_name+\" \" +response.last_name}~#~char",
"customproperty2": "last_name~#~char",
"customproperty3": "email_address~#~char",
"customproperty7": "login_enabled~#~char",
"status":"login_enabled~#~char",
"customproperty1": "first_name~#~char",
"name": "email_address~#~char"
},
"pagination": {
"page": {
"pageSizeParam": "size",
"pageSize": 20,
"pageRecordCount": "20",
"pageNumberParam": "page",
"totalCountPath": "completeResponseMap.page.total_elements",
"firstPageNumber": 0
}
}
}
}
}
}
_______________________________________________________________________

Please let me know if you need more info.

Thanks
Co

https://forums.saviynt.com/t5/identity-governance/veracode-connection/m-p/79843#M51129


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

Hi @rushikeshvartak,

The link you provided was mostly for the ConnectionJSON.
I am having issues with pagination on the ImportAccountEntJSON.

Regards
Co

Pagination or none of entitlement is getting mapped ??


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

@rushikeshvartak 

Entitlements are fine.
But for the pagination I can only get the first page which is the first 20 accounts.