Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/22/2024 07:44 AM
Hi everyone,
I struggle to get the mapping between Accounts and Entitlements in the ImportAccountEntJSON right. It is not assigning the correct Entitlement to the Accounts. The imports of either of them work flawlessly.
ImportAccountEntJSON:
{
"accountParams": {
"connection": "acctAuth",
"createUsers": false,
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"deleteLinks": false,
"accountThresholdValue": 30,
"correlateInactiveAccounts": true,
"inactivateAccountsNotInFile": false,
"deleteAccEntForActiveAccounts": true,
"statusColumn": "customproperty1",
"activeStatus": [
"true"
]
},
"call": {
"call1": {
"http": {
"url": "https://api.smartrecruiters.com/user-api/v201804/users",
"httpHeaders": {
"X-SmartToken": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "content",
"keyField": "name",
"colsToPropsMap": {
"accountID": "id~#~char",
"customproperty4": "id~#~char",
"name": "email~#~char",
"status": "active~#~char",
"customproperty1": "active~#~char",
"customproperty2": "updatedOn~#~char",
"customproperty3": "ssoLoginMode~#~char",
"customproperty5": "systemRole.id~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.nextPageId==null)? null : 'https://api.smartrecruiters.com/user-api/v201804/users?pageId='+response?.completeResponseMap?.nextPageId}"
}
},
"disableDeletedAccounts": true
}
},
"acctEntMappings": {
"Roles": {
"listPath": "",
"idPath": "systemRole.id",
"keyField": "entitlementID"
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 0,
"entTypeLabels": {},
"call": {
"call1": {
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"X-SmartToken": "${access_token}"
},
"url": "https://api.smartrecruiters.com/user-api/v201804/system-roles",
"httpMethod": "GET"
},
"listField": "content",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "name~#~char"
}
}
}
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}
Reply Users
{
"content": [
{
"id": "abcdef1324567890",
"firstName": "Marco",
"lastName": "Polo",
"email": "marco.polo@company.my",
"active": false,
"systemRole": {
"id": "RESTRICTED"
},
"language": {
"code": "en"
},
"ssoIdentifier": "marco.polo@company.my"
}
]
}
Reply System Roles
{
"content": [
{
"id": "ADMINISTRATOR",
"name": "ADMINISTRATOR"
}
}
Any clue what I'm doing wrong?
Cheers 🙂
Solved! Go to Solution.
07/22/2024 08:00 AM
Hi @Murmur , can you share account customproperty 31 value.
07/22/2024 08:41 AM
Remove
"deleteAccEntForActiveAccounts": true,
07/22/2024 09:28 AM
Thank you @rushikeshvartak!