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

Update account json failing

asharma
Regular Contributor II
Regular Contributor II

ErrorError while Update operation for account-asharma in AD - [LDAP: error code 21 - 00000057: LdapErr: DSID-0C090DE6, comment: Error in attribute conversion operation, data 0, v2580] 

Task - Update attributes in AD using update account rule.

JSON - {
"givenName": "${user.firstname!=null?user.firstname:''}",
"description": "${user.displayname!=null?user.displayname:''}",
"employeeType": "${user.employeeType!=null?user.employeeType:''}",
"title": "${user.title!=null?user.title:''}",
"postalCode": "${user.customproperty5!=null?user.customproperty5:''}",
"l": "${user.city != null ? user.city : ''}",
"mobile": "${user.customproperty8!=null?user.customproperty8:''}",
"telephoneNumber": "${user.phonenumber != null ? user.phonenumber : ''}",
"otherTelephone": "${user.customproperty14 != null ? user.customproperty14 : ''}",
"co": "${user.country != null ? user.country : ''}",
"st": "${user.state != null ? user.state : ''}",
"department": "${ if(user?.costcenter != null && user?.costcenter.contains('Manager')) {user.costcenter} else {' '} }",
"departmentNumber": "${user.departmentNumber!=null?user.departmentNumber:''}",
"sn": "${user.lastname != null ? user.lastname : ''}",
"streetAddress": "${user.street!=null?user.street:''}",
"displayName": "${user.displayname != null ? user.displayname : ''}",
"manager":"${if (managerAccount == null || managerAccount?.accountID == null || managerAccount?.accountID == ''){''} else {managerAccount?.accountID}}"
}

Please help me with the fix

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

telephoneNumber can be issue 

https://backstage.forgerock.com/knowledge/kb/article/a11279039


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

asharma
Regular Contributor II
Regular Contributor II

Hi Rushikesh,

None of them worked. can you check again for which attribute it is targeting and if the code is fine

Thanks

asharma
Regular Contributor II
Regular Contributor II

Please find latest error after updating syntax.

Error while Update operation for account-asharma in AD - [LDAP: error code 21 - 00000057: LdapErr: DSID-0C090DE6, comment: Error in attribute conversion operation, data 0, v2580]

 

{
 "co": "${user.country != null ? user.country : ''}",
 "department": "${user.costcenter!=null ? user.costcenter:''}",
 
 "displayName": "${user.displayname != null ? user.displayname : ''}",
"departmentNumber": "${user.departmentNumber!=null ? user.departmentNumber:''}",
 
"givenName": "${user.firstname!=null?user.firstname:''}",
"l": "${user.city != null ? user.city : ''}",
"mobile": "${user.customproperty8!=null?user.customproperty8:''}",
"otherTelephone": "${user.customproperty14 != null ? user.customproperty14 : ''}",
"postalCode": "${user.customproperty5!=null?user.customproperty5:''}",
"sn": "${user.lastname != null ? user.lastname : ''}",
"st": "${user.state != null ? user.state : ''}",
"streetAddress": "${user.street!=null?user.street:''}",
"title": "${user.title!=null?user.title:''}",
 
}
Kindly help asap

asharma
Regular Contributor II
Regular Contributor II

Hi Rushikesh,

I am still waiting for your response or someone else in your team can help me with syntax.

 

Provide sample values those are getting sent 


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

asharma
Regular Contributor II
Regular Contributor II

If Users.displayname is updated
OR Users.First Name is updated
OR Users.Cost Center is updated
OR Users.Manager is updated
OR Users.lastname is updated
OR Users.Title is updated
OR Users.Department Name is updated
OR Users.Employee ID is updated