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

Acct-Ent Mapping for Rest based Application

MansoorAhmed
New Contributor
New Contributor

We have onboarded Application using REST Connector to Saviynt. We imported the accounts using Import Acct JSON , however we are not importing entitlements as we have created using CSV File. Now we want to do the Account-Entitlement Mapping through Import JSON , any leads on how I can modify the below JSON to accomodate the above mentioned requirement.

Below Is the ImportAccountEnt JSON generated in connector.

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"deleteLinks": true,
"accountThresholdValue": 1000,
"correlateInactiveAccounts": true,
"inactivateAccountsNotInFile": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://abc.com/v1/users?tenantId&query",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "user",
"keyField": "accountID",
"statusConfig": {
"active": "ACTIVE",
"inactive": "INACTIVE"
},
"colsToPropsMap": {
"accountID": "userId~#~char",
"name": "userId~#~char",
"status": "active~#~char",
"customproperty1": "tenantId~#~char",
"customproperty2": "username~#~char",
"customproperty3": "userEmail~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"

}

}
}
},
"acctEntMappings": {
"sqcRole": {
"listPath": "",
"idPath": "sqcRole",
"keyField": "entitlementID"
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"sqcRole": {}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}

 

1 REPLY 1

sagars
Saviynt Employee
Saviynt Employee

Hello @MansoorAhmed ,

The above json you are using has syntax issue. Please use below JSON but change the URL,Mapping, List path etc according to your target application.

 

{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://abc.com/users",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/x-www-form-urlencoded",
"httpMethod": "GET"
},
"listField": "value",
"keyField": "accountID",
"colsToPropsMap": {
"displayname": "fullname~#~char",
"name": "internalemailaddress~#~char",
"accountID": "internalemailaddress~#~char",
"customproperty1": "firstname~#~char",
"customproperty2": "lastname~#~char",
"customproperty3": "mobilephone~#~char",
"customproperty4": "address1_telephone1~#~char",
"customproperty5": "address1_line1~#~char",
"customproperty6": "internalemailaddress~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"acctEntMappings": {
"Roles": [
{
"listPath": "systemuserroles_association",
"idPath": "roleid",
"keyField": "entitlementID"
}
]
}
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"connection": "userAuth",
"entTypes": {
"Roles": {
}
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
}
}