Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Calculate user attributes based on manager attributes

ayane_ahmed
New Contributor II
New Contributor II

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:

ayane_ahmed_0-1711101784601.png

Thank you.

Regards,

 

 

 

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Enable showlogs = True in config JSON to check what parameters are being sent to API


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

rushikeshvartak
All-Star
All-Star

rushikeshvartak_0-1711385508210.png

filtercriteria is not used in JSON

 


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