and more in a single search tool across platforms. Read the announcement here. |
03/22/2024 03:11 AM
Hello Everyone,
We have a requirement to derived some user's attributes from the manager's attributes.
We have implemented a UpdateAccountJSON on a SAV4SAV connector that is triggered through a user update rule.
The Update Account task on Sav4Sav is well created but the task is failing during provisioning with this message:
{"errorCode":"1","message":" Users not found with username ${user.username}"},"statusCode":412,"description":null,"status":"Failed"}]},"call2":{"headers":null,"message":{"errorCode":"1","message":" Users not found with username ${user.username}"},"statusCode":412,"description":null,"status":"Failed"}}
The UpdateAccount is the following:
{
"call":[
{
"name":"call12",
"connection":"userAuth",
"url":"https://XXX/getUser",
"httpMethod":"POST",
"httpParams":"{\"username\":\"${user.owner}\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"successResponses":{
"statusCode":[
200,
201,
204,
205
]
}
},
{
"name":"call2",
"connection":"userAuth",
"url":"https://XXX/updateUser",
"httpMethod":"POST",
"httpParams":"{\"customproperty12\":\"${response.call12.message.userlist[0].customproperty12\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"successResponses":{
"statusCode":[
200,
201,
204,
205
]
}
}
]
}
The call to get the attributes from the manager is working and the result in Postman is following:
Thank you.
Regards,
03/24/2024 08:01 PM
Enable showlogs = True in config JSON to check what parameters are being sent to API
03/25/2024 09:52 AM