Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

invalid manager error in the completed tasks for a user for update account task

Growit
New Contributor
New Contributor

 

TAsk type: update account

pls help me on the permanent fix, as few users daily getting these errors when the update account tasks happens

{"auditDetails":{"call1":[{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"}]},"call1":{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid Manager Username.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"}}

Update json:

{
"call": [{
"name": "call1",
"connection": "",
"url": "",
"httpParams": "{\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"user_name\":\"${user.employeeid}\",\"status\":\"${user.customproperty23 == 'Active' || user.customproperty23 == 1 ? 'cre_usr_sts_atv' : 'cre_usr_sts_itv'}\",\"returntype\":\"json\",\"apiname\":\"UserUpdationAPIV2\",\"email\":\"${user?.email ? user.email : user.firstname.replace(' ','') + '.' + user.lastname.replace(' ','') + '.' + user.employeeid + '@bluecollar.pg.com'}\",\"userid\":\"311863\",\"id\":\"${account.customproperty5}\",\"org_name\": \"${user.customproperty47}-${user.customproperty19}-${user.customproperty21}\",\"addr1\":\"${user.street}\",\"city\":\"${user.city}\",\"country\":\"${user.customproperty11}\",\"is_manager\":\"${if(user?.customproperty25=='true'){'Y'} else {'N'}}\",\"zip\":\"${user.regioncode}\",\"employee_no\":\"${user.employeeid}\",\"empltype\":\"${user.customproperty49} - ${user.customproperty43}\",\"manager_username\":\"${user.customproperty46}\",\"jobrole\":\"${user.customproperty45}\",\"jobtitle\":\"${user.customproperty45}\",\"usertype\":\"${user.customproperty42}\",\"hire_date\":\"${user.customproperty41.replace('-','/')}\",\"c_cost_center\":\"${user.costcenter}\",\"c_company_name\":\"${user.companyname}\"}}",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}",
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
417
]
}
}]
}

2 REPLIES 2

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @Growit , please check the value of customproperty which is mapped with user manager field for the user for which task is failing.

And then check it for the user it's working.

If data type wise both are same, check if that manager exists in target app or not

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

rushikeshvartak
All-Star
All-Star

Refer https://forums.saviynt.com/t5/identity-governance/ars-task-error/td-p/116187


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.