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

Rest Connector Application Account-Entitlement mapping not happening

Souvik
New Contributor III
New Contributor III

The Account-Entitlement mapping for Rest based application is nit mapping.

Connection Json that I had used:

{
"authentications": {
"acctAuth": {
"authType": "BasicWithAccessToken",
"url": "{Url:Access token Url}",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"properties": {
"userName":"XXXXX",
"password":"XXXXXX"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"retryFailureStatusCode": [
401
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}

 

 

ImportAccountEntJSON That I had used:

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"successResponses": {
"statusCode": [
200
]
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "{Url:To get all user}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userName~#~char",
"displayname": "displayName~#~char",
"customproperty3": "active~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
},
"acctEntMappings": {
"Role": {
"listPath": "rolename",
"idPath": "",
"keyField": "entitlement_value"
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"successResponses": {
"statusCode": [
200
]
},
"entTypes": {
"Role": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "{Url:To get all the roles}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"keyField": "entitlement_value",
"colsToPropsMap": {
"entitlementID": "roleid~#~char",
"entitlement_value": "rolename~#~char",
"displayname": "rolename~#~char",
"customproperty1": "roleid~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Role": {
"acctKeyField": "accountID",
"entKeyField": "entitlement_value",
"call": {
"call1": {
"processingType": "acctToEntMapping",
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"url": "https://(Get URL for first 50 entitlements)?StartIndex=1&Limit=50",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "Resources",
"acctIdPath": "Resources.members.id",
"entIdPath": "Resources.roleid"
}
}
}
}
}
}

 

Please suggest a way through I can achieve the account-entitlement mapping.

2 REPLIES 2

Belwyn
Saviynt Employee
Saviynt Employee

Hi Souvik 

Thank you for reaching out to us, 

Have you ref/following or guide on REST connection? 

https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide

 

Thanks & Regards, 
Belwyn.

rushikeshvartak
All-Star
All-Star

update "entKeyField": "entitlementID", in acctEntParams


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.