Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/11/2024 05:22 AM
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 ?
06/11/2024 05:23 AM
${task?.entitlementValueKey?.customproperty1}
06/11/2024 05:53 AM
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.
06/11/2024 06:42 AM
${arsTasks?.entitlementValueKey?.customproperty1}
06/11/2024 09:36 AM
no its still not working.
06/13/2024 10:34 PM
${entitlementValuesObj.customproperty1} |
06/18/2024 08:52 AM
@rushikeshvartak its still not working.
otherway around i am trying to work it out via if else. like If ent value is x then abc.
i am using the below query.
just want to validate is the rightway to pick the ent. value ? because in logs i can't see the real value i.e. the country code.
06/18/2024 10:56 AM
Refer https://forums.saviynt.com/t5/identity-governance/if-else-rest-connector-json/m-p/100315#M65882
06/19/2024 05:41 AM
The pending tasks are getting completed but when i check the API call status it says INVALID VALUE.
I have tried with dynamicAttributes.get and requestAccessAttributes.get to get the value of dynamic attribute and used if else to map the values.
Is there any other way i can do this use case ?
06/19/2024 06:24 AM
What is name of attribute? Are you storing value in account columns ?