09/29/2023
06:11 AM
- last edited on
09/29/2023
07:13 AM
by
Sunil
Hi,
we are trying to Import accounts using REST Connector. We are able to import accounts and entitlements from the response but unable to map accounts and entitlements.
The designationcode key pair contains the entitlement value in comma separated form. like "ent1,ent2" .
ent1 and ent2 are entitlements within system. how to map it?
API Response
AccountImportJSON
Solved! Go to Solution.
10/03/2023 11:10 AM
Though I have not implemented this type of integration before but can you check if there is any other api available that gives the account to entitlement correlation mapping.
10/04/2023 10:45 PM
@SB , this API : "https://domain.com/webapistg/api/Saviynt/GetUserList" gives account to entitlement mapping as per below payload, the problem is if you look at designationcode field of each user, it comes as a string in comma separated value. How do we map this string in accountentparam?
10/11/2023 03:12 PM
Let me check on this and will update you.
10/11/2023 10:56 PM
Thanks @SB
10/25/2023 09:17 AM
Can you try with below and see if it works.
"listField": "Users",
"acctIdPath": "EmployeeID",
"entListField": "DesignationCodes",
"entIdPath": ".",
"entKeyField": "entitlementID"
10/30/2023 10:15 AM
Hi
Can you please share your working json
10/30/2023 09:37 PM
Hello @Jyoti1 ,
Comma separated strings in entitlements are not supported by Saviynt, we made the target system to send Array of Strings.
The working JSON is
{
"accountParams": {
"connection": "userAuth",
"includeExistingInActiveAccounts": true,
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxxxxx/webapistg/api/Saviynt/GetUserList",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "EmployeeID~#~char",
"name": "EmployeeID~#~char",
"status": "StatusCode~#~char",
"lastlogondate": "LastLoginTime~#~char",
"customproperty2": "DepartmentName~#~char",
"customproperty1": "EmployeeName~#~char",
"customproperty4": "EmailAddress~#~char",
"customproperty5": "MobileNumber~#~char",
"customproperty6": "DesignationCodes~#~char",
"customproperty7": "StatusCode~#~char",
"customproperty8": "Country~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
},
"acctEntMappings": {
"Designations": {
"listPath": "DesignationCodes",
"idPath": "",
"keyField": "entitlementID"
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"Designations": {
"entTypeOrder": 0,
"call": {
"call1": {
"connection": "userAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://xxxxx/webapistg/api/Saviynt/GetDesignationList",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Designations",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "DesignationCode~#~char",
"entitlement_value": "DesignationCode~#~char",
"displayname": "DesignationCode~#~char",
"description": "DesignationName~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}