Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/15/2024 08:58 AM
Hello,
We have a requirement to calculate some user attributes via an update task in a Sav4Sav connection after a user creation. For example for certain attributes, we need to have the same value as the user's manager. We have implemented the UpdateUserJSON as well as the user update rule to trigger the Update User task.
The task is created and provisioned but the attributes are not getting updated and there is nothing present in the logs.
Here is the UpdateUserJSON:
03/17/2024 06:20 PM
Your syntax is wrong
Update user needs to have actions defined in json
Sample json
{
"actions": {
"Disable User": {
"call": [
{
"callOrder": 0,
"connection": "${connectionName}",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "PATCH",
"httpParams": "{\"accountEnabled\": false}",
"name": "Disable User",
"successResponses": {
"statusCode": [
200,
204
]
},
"url": "https://graph.microsoft.com/v1.0/users/${user.customproperty4}"
}
]
},
"Enable User": {
"call": [
{
"callOrder": 0,
"connection": "${connectionName}",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "PATCH",
"httpParams": "{\"accountEnabled\": true}",
"name": "Enable User",
"successResponses": {
"statusCode": [
200,
204
]
},
"url": "https://graph.microsoft.com/v1.0/users/${user.customproperty4}"
}
]
},
"Update Login": {
"call": [
{
"callOrder": 0,
"connection": "${connectionName}",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "PATCH",
"httpParams": "{\"mobilePhone\": \"${user.phonenumber}\"}",
"name": "Update Login",
"successResponses": {
"statusCode": [
200,
204
]
},
"url": "https://graph.microsoft.com/v1.0/users/${user.customproperty4}"
}
]
}
}
}
03/19/2024 05:05 AM
Hello @rushikeshvartak,
But in that case, how do you update the user's attributes via the sav4sav connector ? Because we only need to modify the attributes and not do any action on the user.
Thank you.
Regards,