We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Add Access Multiple Entitlement Nested Entitlement REST API

anuragtripathi
New Contributor
New Contributor

There are 4 entitlement types and one of the entitlement type has 1 nested entitlement type. There is single API update user to add access to add entitlements of all types.

Does anyone has sample of such Add Access JSON?

1 REPLY 1

nimitdave
Saviynt Employee
Saviynt Employee

@anuragtripathi pls find below a sample:

{
"call": [
{
"name": "Group",
"connection": "acctAuth",
"url": "url",
"httpMethod": "POST",
"httpParams": "{\"group_membership\": {\"user_id\": \"${account.accountID}\", \"group_id\": \"${entitlementValue.entitlementID}\"}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
},
{
"name": "Role",
"connection": "acctAuth",
"url": "url",
"httpMethod": "PUT",
"httpParams": "{\"user\": {\"custom_role_id\": \"${entitlementValue.entitlementID}\"}}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"succesxsResponses": {
"statusCode": [
201
]
}
}
]
}