Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/27/2024 10:23 AM
Hi, we need to if else in the REST connector JSON.
for a patch call if operation = add we need to send different payload and for operation = remove we need to send different payload.
{
"call": [
{
"name": "Country",
"connection": "acctAuth",
"url": "https:/xyz/Users/${account.customproperty5}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\": \"add\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles\",\"value\":[{\"roleName\":\"${requestAccessAttributes.get('Role')}\",\"roleGroups\":[\"${arsTasks.entitlement_valueKey.customproperty1}\"]}]}]}",
}
above JSON in case of when operation op=Add, and in case of op=remove we only need to pass the entitlement i.e. requestAccessAttributes.get('Role').
I am not getting the right syntax to be used for this . Can anyone help me on this ?
06/27/2024 10:29 AM
{
"call": [
{
"name": "Country",
"connection": "acctAuth",
"url": "https:/xyz/Users/${account.customproperty5}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\":\"${operationType}\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles\",\"value\":[{\"roleName\":\"${requestAccessAttributes.get('Role')}\",\"roleGroups\":[\"${arsTasks.entitlement_valueKey.customproperty1}\"]}]}]}"
}
]
}
06/28/2024 04:08 AM
06/28/2024 08:15 PM
How do you decide operations it should be based on dynamic attributes I considered operationtype as dynamic attribute
07/01/2024 04:19 AM
Yes, its a dynamic attribute having values Add and remove as values in dropdown.
07/01/2024 06:48 AM
In that case above should if not working share logs