Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Need help with Account and entitlement association

Vamsi
New Contributor III
New Contributor III

Hi All,

We are trying to integrate with a application we were able to import the accounts and groups but have issue with account to entitlement association. Did some one seen this format before and was able to get the association working. Below is the response format we are getting from target application. 

CP31 - {"Roles":{"entIds":["[Read Only,Mailbox Browser]"],"keyField":"entitlementID"}}

Account import Sample Response - 

[

{

"userId""TEST1",
"groups": [
            {
                "name""Read Only"
            },
            {
                "name""Mailbox Browser"
            }
        ]
},
{
"userId""TEST1",
"groups": [
            {
                "name""API User"
            },
            {
                "name""Mailbox Admin"
            }
        ]
}
]
 

__PRESENT

Json -

{
"accountParams": {
"acctEntMappings": {
"Roles": {
"idPath": "groups.name",
"keyField": "entitlementID",
"listPath": ""
}
},
"call": {
"call1": {
"callOrder": 0,
"colsToPropsMap": {
"accountID": "userId~#~char",
"name": "userId~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"

},
"http": {
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET",
"url": ""
},
"keyField": "accountID",
"listField": "",
"idPath": "userId",
"stageNumber": 0
}
},
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountThresholdValue": 50,
"activeStatus": [
"true"
],
"correlateInactiveAccounts": false,
"deleteLinks": true,
"inactivateAccountsNotInFile": true,
"statusColumn": "customproperty11"
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 0,
"call": {
"call2": {
"callOrder": 1,
"colsToPropsMap": {
"entitlement_value": "groupName~#~char",
"entitlementID": "groupName~#~char"
},
"http": {
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET",
"url": ""
},
"keyField": "entitlementID",
"listField": "",
"idPath": "groupName"
}
}
}
}
}
}
 

 [This post has been edited by a Moderator to merge two posts.]

1 REPLY 1

Darshanjain
Saviynt Employee
Saviynt Employee

Hi @Vamsi 

In the acctEntParams section can you add the list field as the entitlement id is coming with double square brackets and thats causing the issue. 

 {"Roles":{"entIds":["[Read Only,Mailbox Browser]"],"keyField":"entitlementID"}}

In the list field- Try to add the array format [0] and see if you are able to map it.

 

Thanks

Darshan