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

IMPORT ACCOUNT WITH POST METHOD - REST CONNECTOR

alvian
Regular Contributor
Regular Contributor

Dear Folks.

sample response Post call.
{
"message": "Success",
"data": {
"list": [
{
"name": "Alvian",
"email": "alvian@example",
"productOwner": "P1",
"role": "role1",
"validity": "2025-12-31 23:59:59"
}, more....

import accounts json

"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://url/v1/post-users-paging",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/json",
"httpparams": "{\"page\":\"1\",\"size\":\"200\"}"
},
"listField": "data.list",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "name~#~char",
"name": "name~#~char",
"displayName": "name~#~char",
"customproperty1": "role~#~char",
"customproperty2": "productowner~#~char",
"customproperty3": "validity~#~char"
}
}
}
},

but no account is imported

9 REPLIES 9

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


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

curl -X POST --location 'https://url/v1/post-users-paging' \
--header 'accept: application/json' \
--header 'Authorization: Bearer abcd' \
--header 'Content-Type: application/json' \
--data '{
"page": 1,
"size": 100
}'

Please share logs in text format
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️ ‼️‼️Refer https://forums.saviynt.com/t5/help/faqpage/title/WhenNotifyAboutPII



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

unfortunately no error coming up once run the account import job, either on job logs or log viewer 

alvian_0-1728405813276.png

 



2024-10-08T23:39:12+07:00-ecm-worker-integration.ExternalConnectionCallService-quartzScheduler_Worker-6-6nfpb-DEBUG Key=ImportAccountEntJSON Value={| "accountParams": {| "connection": "userAuth",| "processingType": "SequentialAndIterative",| "statusAndThresholdConfig": {| "statusColumn": "customproperty11",| "activeStatus": [| "1"| ],| "deleteLinks": true,| "accountThresholdValue": 100,| "correlateInactiveAccounts": false,| "inactivateAccountsNotInFile": true,| "deleteAccEntForActiveAccounts": true| },| "call": {| "call1": {| "callOrder": 0,| "stageNumber": 0,| "http": {| "url": "https://url/v1/post-users-paging",| "httpMethod": "POST",| "httpHeaders": {| "Authorization": "${access_token}",| "Accept": "*/*"| },| "httpContentType": "application/json",| "httpParams": "{\"page\":\"1\",\"size\":\"50\"}"| },| "listField": "data.list",| "keyField": "accountID",| "colsToPropsMap": {| "accountID": "name~#~char",| "name": "name~#~char",| "displayName": "name~#~char",| "customproperty1": "role~#~char",| "customproperty2": "productOwner~#~char",| "customproperty3": "validity~#~char"| }| }| }| },| "entitlementParams": {| "processingType": "SequentialAndIterative",| "entTypes": {| "Role": {| "entTypeOrder": 0,| "call": {| "call1": {| "connection": "userAuth",| "callOrder": 0,| "stageNumber": 0,| "http": {| "url": "https://url/v1/get-role-all",| "httpMethod": "GET",| "httpHeaders": {| "Authorization": "${access_token}",| "Accept": "*/*"| }| },| "listField": "data",| "keyField": "entitlementID",| "colsToPropsMap": {| "entitlementID": "code~#~char",| "entitlement_value": "name~#~char",| "displayname": "name~#~char"| },| "disableDeletedEntitlements": false,| "errorHandling": {| "onError": "log",| "logMessage": "Failed to execute API call. Error message: ${error_message}"| }| }| }| },| "Productowner": {| "entTypeOrder": 0,| "call": {| "call1": {| "connection": "userAuth",| "callOrder": 0,| "stageNumber": 0,| "http": {| "url": "https://url/v1/get-product-owner-all",| "httpMethod": "GET",| "httpHeaders": {| "Authorization": "${access_token}",| "Accept": "*/*"| }| },| "listField": "data",| "keyField": "entitlementID",| "colsToPropsMap": {| "entitlementID": "code~#~char",| "entitlement_value": "name~#~char",| "displayname": "name~#~char"| },| "disableDeletedEntitlements": false,| "errorHandling": {| "onError": "log",| "logMessage": "Failed to execute API call. Error message: ${error_message}"| }| }| }| }| }| },| "acctEntParams": {},| "acctEntMappings": {}|}

  • Please share logs in text file along with import json

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

here are logs and import json 

Please share full logs one liner will not help to debug


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

here is attached related logs for this matter 

Logs just contains when job is started. No line is showing or no full logs when job is ended.


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