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 - AddAccess JSON

Rajatlm10
New Contributor III
New Contributor III

Hi, 

I am using the below JSON for addAccess for REST connector. 

{
"call": [
{
"name": "Role",
"connection": "acctAuth",
"url": "https://xyz/profile/v4/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\":\"${dynamicAttributes.get('Rolename')\",\"rolesGroup\":\"${entitlement_values.customproperty1}\"}]}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

is it the right syntax for addAccess JSON ? as i am not getting any error in the logs. 

 

Also, The entitlement value is stored in CP1 but its not getting picked up in logs. i have tried with dynamicAttributes.get and requestAccessAttributes.get and in both cases value is not getting picked up. 

 

Can anyone help me on this ?

 

 

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

${task?.entitlementValueKey?.customproperty1}


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

Rajatlm10
New Contributor III
New Contributor III

@rushikeshvartak 

Rajatlm10_0-1718110326708.png

Still, it shows "Austria" but actual value in AT-480 (in CP1), Austria is the user-friendly name which we are using in the access form. 

${arsTasks?.entitlementValueKey?.customproperty1}


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

Rajatlm10
New Contributor III
New Contributor III

no its still not working.