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

AD Provisioning issue - LDAP error

HarishG
Regular Contributor
Regular Contributor

Hi,

Getting the below error while provisioning new AD account,

Error:

 Error while creating account in AD - [LDAP: error code 80 - 00000523: SysErr: DSID-031A1262, problem 22 (Invalid argument), data 0 ]

Any suggestions how to fix this issue?

 

Thanks,

Harish

4 REPLIES 4

Saathvik
All-Star
All-Star

@HarishG : Looks like one or more attributes are getting invalid values set. Can you please share the CreateAccountJSON


Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

HarishG
Regular Contributor
Regular Contributor

Hi @Saathvik ,

Thanks for the reply.

CreateAccountJSON:

{
"accountExpires": "0",
"Language": "${if(user.customproperty19 == null){''} else {user.customproperty19}}",
"sn": "${if(user.customproperty14 == null){user.lastname} else {user.customproperty14}}",
"givenName": "${if(user.preferedfirstname == null){user.firstname} else {user.preferedfirstname}}",
"streetAddress": "${DA_streetAddress}",
"postOfficeBox": "${DA_postOfficeBox}",
"postalCode": "${DA_postalCode}",
"l": "",
"corpCustomAttribute033": "${if(user.customproperty8 == null){''} else {user.customproperty8}}",
"title": "${if(user.JOBDESCRIPTION == null){''} else {user.JOBDESCRIPTION}}",
"corpCustomAttribute034": "${if(user.JOBCODEDESC == null){''} else {user.JOBCODEDESC}}",
"corpCustomAttribute035": "${if(user.customproperty15 == null){''} else {user.customproperty15}}",
"corpCustomAttribute036": "${if(user.DEPARTMENTNUMBER == null){''} else {user.DEPARTMENTNUMBER}}",
"corpCustomAttribute039": "",
"manager": "",
"corpCustomAttribute040": "${if(user.customproperty25 == null){''} else {user.customproperty25}}",
"corpCustomAttribute041": "${if(user.customproperty26 == null){''} else {user.customproperty26}}",
"userPrincipalName": "${if(user.customproperty6 == null){''} else {user.customproperty6}}",
"mail": "${if(user.email == null){''} else {user.email}}",
"telephoneNumber": "${if(user.PHONENUMBER == null){''} else {user.PHONENUMBER}}",
"facsimileTelephoneNumber": "${if(user.customproperty47 != null){user.customproperty47}}",
"physicalDeliveryOfficeName": "${if(user.SITEID == null){''} else {user.SITEID}}",
"targetAddress": "${if(user.email == null){''} else {user.email}}",
"corpCustomAttribute005": "${if(user.customproperty41 == null){''} else {user.customproperty41}}",
"displayName": "${[user.firstname,';',user.lastname,user.customproperty34, usersObj?.customer?.customproperty18].join('')}",
"co": "",
"c": "",
"countryCode": "",
"cn": "${[user.firstname,',', user.lastname, user.customproperty34, usersObj?.customer?.customproperty18, user.username].join('')}",
"company": "${if(user.COMPANYNAME == null){''} else {user.COMPANYNAME}}",
"corpCustomAttribute001": "${if(user.USERNAME == null){''} else {user.USERNAME}}",
"corpCustomAttribute009": "",
"corpCustomAttribute010": "",
"corpCustomAttribute031": "${if(user.customproperty37 == null){''} else {user.customproperty37}}",
"extensionAttribute1": "${['user.customproperty37','-', user.employeeid].join('')}",
"extensionAttribute7": "${['user.customproperty37','-', user.costcenter].join('')}",
"extensionAttribute8": "${if(user.customproperty16 == null){''} else {user.customproperty16}}",
"extensionAttribute9": "",
"extensionAttribute13": "${if(user.EMPLOYEETYPE == null){''} else {user.EMPLOYEETYPE}}",
"mobile": "${if(user.SECONDARYPHONE == null){''} else {user.SECONDARYPHONE}}",
"sAMAccountName": "${if(user.USERNAME == null){''} else {user.USERNAME}}",
"pwdLastSet": "0",
"objectClass": [
"top",
"person",
"organizationalPerson",
"user"
]
}

 

{
"accountExpires": "0",
"Language": "${if(user.customproperty19 == null){''} else {user.customproperty19}}",
"sn": "${if(user.customproperty14 == null){user.lastname} else {user.customproperty14}}",
"givenName": "${if(user.preferedfirstname == null){user.firstname} else {user.preferedfirstname}}",
"streetAddress": "${DA_streetAddress}",
"postOfficeBox": "${DA_postOfficeBox}",
"postalCode": "${DA_postalCode}",
"l": "${if(user.city == null){''} else {user.city}}", // Fix for location 'l'
"corpCustomAttribute033": "${if(user.customproperty8 == null){''} else {user.customproperty8}}",
"title": "${if(user.JOBDESCRIPTION == null){''} else {user.JOBDESCRIPTION}}",
"corpCustomAttribute034": "${if(user.JOBCODEDESC == null){''} else {user.JOBCODEDESC}}",
"corpCustomAttribute035": "${if(user.customproperty15 == null){''} else {user.customproperty15}}",
"corpCustomAttribute036": "${if(user.DEPARTMENTNUMBER == null){''} else {user.DEPARTMENTNUMBER}}",
"corpCustomAttribute039": "",
"manager": "",
"corpCustomAttribute040": "${if(user.customproperty25 == null){''} else {user.customproperty25}}",
"corpCustomAttribute041": "${if(user.customproperty26 == null){''} else {user.customproperty26}}",
"userPrincipalName": "${if(user.customproperty6 == null){''} else {user.customproperty6}}",
"mail": "${if(user.email == null){''} else {user.email}}",
"telephoneNumber": "${if(user.PHONENUMBER == null){''} else {user.PHONENUMBER}}",
"facsimileTelephoneNumber": "${if(user.customproperty47 != null){user.customproperty47}}",
"physicalDeliveryOfficeName": "${if(user.SITEID == null){''} else {user.SITEID}}",
"targetAddress": "${if(user.email == null){''} else {user.email}}",
"corpCustomAttribute005": "${if(user.customproperty41 == null){''} else {user.customproperty41}}",
"displayName": "${[user.firstname, ' ', user.lastname].join('')}", // Simplified to avoid complex concatenation
"co": "",
"c": "",
"countryCode": "",
"cn": "${[user.firstname, ' ', user.lastname].join('')}", // Simplified to avoid complex concatenation
"company": "${if(user.COMPANYNAME == null){''} else {user.COMPANYNAME}}",
"corpCustomAttribute001": "${if(user.USERNAME == null){''} else {user.USERNAME}}",
"corpCustomAttribute009": "",
"corpCustomAttribute010": "",
"corpCustomAttribute031": "${if(user.customproperty37 == null){''} else {user.customproperty37}}",
"extensionAttribute1": "${[user.customproperty37, '-', user.employeeid].join('')}",
"extensionAttribute7": "${[user.customproperty37, '-', user.costcenter].join('')}",
"extensionAttribute8": "${if(user.customproperty16 == null){''} else {user.customproperty16}}",
"extensionAttribute9": "",
"extensionAttribute13": "${if(user.EMPLOYEETYPE == null){''} else {user.EMPLOYEETYPE}}",
"mobile": "${if(user.SECONDARYPHONE == null){''} else {user.SECONDARYPHONE}}",
"sAMAccountName": "${if(user.USERNAME == null){''} else {user.USERNAME}}",
"pwdLastSet": "0",
"objectClass": [
"top",
"person",
"organizationalPerson",
"user"
]
}


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

HarishG
Regular Contributor
Regular Contributor

Thanks @rushikeshvartak ,

Tried using the simplified JSON which you provided, still getting the same error.

with '/' in user's lastname

HarishG_2-1716448639357.png

 

If there is no '/' in the lastname, it throws LDAP bad_name error. So just for testing i have added / in the lastname.

 

without '/' in user's lastname:

HarishG_1-1716448489077.png

 

Best regards

Harish