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

REST Connector - Account Entitlement Mapping

Murmur
Regular Contributor III
Regular Contributor III

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 🙂

3 REPLIES 3

NM
Honored Contributor II
Honored Contributor II

Hi @Murmur , can you share account customproperty 31 value.

rushikeshvartak
All-Star
All-Star

Remove 

"deleteAccEntForActiveAccounts": true,

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

Murmur
Regular Contributor III
Regular Contributor III

Thank you @rushikeshvartak!