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

Account Import Issue for Rest Connector- Suspending accounts when we run account import job

kmashwini
Regular Contributor
Regular Contributor

Hi

The below Json we are trying for account import. When we run the account import jobs it getting suspended for import service for user which creating from Saviynt. In Postman - we were able to see the account which created from Saviynt and showing active using get users Api call but in Saviynt it is getting deleted after account import job. Even in logs the account is not coming while running account import job.

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty11",
"activeStatus": [
"true"
],
"deleteLinks": true,
"accountThresholdValue": 10,
"correlateInactiveAccounts": false,
"inactiveAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https:///GetUsers",
"httpParams": {
"pageIndex": "0",
"pageSize": "510"
},
"httpHeaders": {
"Cookie": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "Id~#~char",
"name": "Username~#~char",
"displayName": "FullName~#~char",
"status": "Active~#~char",
"customproperty11": "Active~#~char",
"customproperty12": "Deleted~#~char"
},
"statusConfig": {
"active": "true",
"inactive": "false"
}
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Groups": {
"entTypeOrder": 0,
"entTypeLabels": {},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https:///GetGroups",
"httpParams": {
"pageIndex": "0",
"pageSize": "1000"
},
"httpHeaders": {
"Cookie": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "POST"
},
"listField": "",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "Id~#~char",
"entitlement_value": "Name~#~char"
}
}
}
}
}
},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Groups": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"showJobHistory": true,
"processingType": "httpEntToAcct",
"http": {
"url": "https://GetGroup?id=${id}",

"httpHeaders": {
"Cookie": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Users",
"entKeyField": "entitlementID",
"acctIdPath": "Id",
"acctKeyField": "accountID"
}
}
}
}
}
}

 

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Are you populating account id during new account request from saviynt  ? 

Sample

{
"accountIdPath": "call1.message.user.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayname": "call1.message.user.name~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://saviyntdevops.zendesk.com/api/v2/users",
"httpMethod": "POST",
"httpParams": "{\"user\": {\"name\": \"${user.firstname} ${user.lastname}\", \"password\": \"${password.replace('\\\\','\\\\\\\\').replace('\"', '\\\\\"').replace('\\\\$', '\\\\\\\\$')}\", \"role\":\"agent\"}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json"
}
]
}

https://docs.saviyntcloud.com/bundle/Dev-Handbook-REST-v24x/page/Content/Developers-Handbook.htm


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

we are not populating account id during new account request from saviynt. Below is our create account JSON . @rushikeshvartak 

 {
"accountIdPath":"call1.message.Id",
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https://xxx/CreateUser",
"httpParams":"{\"Username\": \"${user.username}\", \"Active\": true, \"AccountType\": 1, \"FirstName\": \"${user.firstname}\", \"LastName\": \"${user.lastname}\", \"EmailAddress\": \"${user.email}\", \"IsSAML\": true, \"SecurityConfiguration\": {\"Id\": x}, \"APIAccess\": false, \"Groups\": [{\"Id\": xxx}], \"SecurityRoles\": [{\"Id\": xx}]}",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"httpMethod":"POST",
"successResponses":{
"statusCode":[
200,
201,
204
]
},
"unsuccessResponses":{
"statusCode":[
400,
403,
401,
404,
409,
500,
501
]
}
},
{
"name":"call2",
"connection":"acctAuth",
"url":"https://xxx/Logout",
"httpMethod":"GET",
"httpHeaders":{
"Cookie":"${access_token}",
"Content-Type":"application/json"
},
"httpContentType":"application/json",
"successResponses":{
"statusCode":[
200,
201
]
}
}
]
}

  • I can see accountId is mapped
  • validate after import what is difference between 2 accounrs

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