Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/01/2024 03:36 PM
Solved! Go to Solution.
08/01/2024 08:41 PM
Invalid Characters: The underscore (_) in KXAJROT_PBD may not be allowed or expected in certain parts of the Distinguished Name (DN). Although underscores are generally permissible, specific LDAP schemas or rules might restrict their use in certain attributes.
Escape Special Characters: Ensure that all special characters are properly escaped. The method escapeLDAPSpecialChars should handle this, but it seems like there might be an issue in its implementation. Check the method for any bugs or incomplete logic.
Check DN Format: Make sure the complete DN follows the correct format.
08/02/2024 06:29 AM
is it because the account is not reconciled?
08/02/2024 05:26 PM
looks like somewhere special characters needs to be specified
08/07/2024 12:53 PM
Haha surprised to know Saviynt cannot update AD account without getting reconciled as it doesnt find the account id in Saviynt. Its wrong on Saviynt side , Saviynt ideally should be able to update the account without reconciling by including the DN value in update account JSON.
08/02/2024 05:38 AM
its
if thats the case it is able to create the account.why update is failing
08/02/2024 05:54 AM
@txvajrag Share update json
08/02/2024 06:15 AM
i dont think its anything to do with JSON
{
"employeeType": "${user.employeeType}",
"givenName": "${if(user.preferedFirstName == null && user.middlename == null){user.firstname.toUpperCase()}else if(user.preferedFirstName != null && user.preferedFirstName.length() > 0 && user.middlename !=null && user.middlename.length() >0){user.preferedFirstName.toUpperCase()}else if(user.preferedFirstName != null && user.preferedFirstName.length() > 0 && (user.middlename == null || user.middlename.length() == 0)){user.preferedFirstName.toUpperCase()}else if(user.preferedFirstName ==null && user.middlename != null && user.middlename.length() > 0){user.firstname.toUpperCase() + ' ' + user.middlename.charAt(0).toUpperCase()}}",
"sn": "${if(user.customproperty12!=null && user.customproperty12!='') {user.customproperty12.toUpperCase()} else {user.lastname.toUpperCase()}}",
"displayName": "${if(user.customproperty12==null||user.customproperty12.length()==0){if(user.preferedFirstName==null&&user.middlename==null){user.firstname.toUpperCase()+' '+user.lastname.toUpperCase()}else if(user.preferedFirstName!=null&&user.preferedFirstName.length()>0&&user.middlename!=null&&user.middlename.length()>0){user.preferedFirstName.toUpperCase()+' '+user.lastname.toUpperCase()}else if(user.preferedFirstName!=null&&user.preferedFirstName.length()>0&&(user.middlename==null||user.middlename.length()==0)){user.preferedFirstName.toUpperCase()+' '+user.lastname.toUpperCase()}else if(user.preferedFirstName==null&&user.middlename!=null&&user.middlename.length()>0){user.firstname.toUpperCase()+' '+user.middlename.charAt(0).toUpperCase()+' '+user.lastname.toUpperCase()}}else{if(user.preferedFirstName==null&&user.middlename==null){user.firstname.toUpperCase()+' '+user.customproperty12.toUpperCase()}else if(user.preferedFirstName!=null&&user.preferedFirstName.length()>0&&user.middlename!=null&&user.middlename.length()>0){user.preferedFirstName.toUpperCase()+' '+user.customproperty12.toUpperCase()}else if(user.preferedFirstName!=null&&user.preferedFirstName.length()>0&&(user.middlename==null||user.middlename.length()==0)){user.preferedFirstName.toUpperCase()+' '+user.customproperty12.toUpperCase()}else if(user.preferedFirstName==null&&user.middlename!=null&&user.middlename.length()>0){user.firstname.toUpperCase()+' '+user.middlename.charAt(0).toUpperCase()+' '+user.customproperty12.toUpperCase()}}}",
"title": "${if(user.title!=null){user.title}}",
"extensionAttribute8": "${user.username}",
"departmentNumber": "${if(user.customproperty5!=null && user.customproperty5=='SecZetta') {''} else if((user.employeeType!= null &&(user.employeeType.toLowerCase().contains('emp') || user.employeeType.toLowerCase().contains('cwr'))) && (user.customproperty15=='CM117' || user.customproperty15=='CM170' || user.customproperty15=='CM176')){user.customproperty15 + '-' + user.customproperty43 + '-' + user.costcenter} else if(user.employeeType!= null && (user.employeeType.toLowerCase().contains('emp') || user.employeeType.toLowerCase().contains('cwr'))) {user.customproperty15 + '-' + user.customproperty17 + '-' + user.costcenter} else {''}}",
"department": "${if(user.customproperty16!=null && user.customproperty16.length()>64) {user.customproperty16.substring(0,63)} else {user.customproperty16}}",
"accountExpires": "${if(user.customproperty3!=null && user.customproperty3.equalsIgnoreCase('Suspend')){'126227375990000000'} else if(user.customproperty5!=null && user.customproperty5=='SecZetta' && user.termDate!= null){10000*(user.termDate.getTime() + 28800000 + 11644473600000)} else if(user.customproperty25=='HIRED' || user.customproperty4=='VP' || user.customproperty4=='CEO' || user.customproperty4=='CVP' || user.customproperty4=='EVP' || user.customproperty4=='Divisional President'){'0'}else if((user.customproperty25=='PREHIRE' || user.customproperty25=='FUTUREHIRE') && ( user.comments!='Conversion')) {'126227375990000000'}else{'0'}}"
}