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

Not FOund DN for CN=N623155,OU=Saviynt_Test,OU=EHC_Test,DC=eushc,DC=org. Error while creating accoun

Rohit_Mishra
New Contributor II
New Contributor II

Hi Team,

Need support, I am trying to create account in Ad but getting this error Not FOund DN for CN=N623155,OU=Saviynt_Test,OU=EHC_Test,DC=eushc,DC=org. Error while creating account

I tried many things, I tried passing hardcode values, tried removing SN, tried passing limited attributes still the error is same please help me here

JSON

{
"accountExpires": "0",
"cn": "${user.systemUserName}",
"department": "${user.departmentname}",
"displayname": "${user.displayname}",
"employeeID": "${user.employeeID}",
"employeenumber": "${user.customproperty3}",
"employeetype": "${user.employeeType}",
"givenName": "${user.firstname}",
"mail": "${user.email}",
"emailaddress": "${user.email}",
"name": "${user.systemUserName}",
"objectClass": [
"top",
"person",
"organizationalPerson",
"user"
],
"physicaldeliveryofficename": "${user.OrgunitID}",
"manager": "${managerAccount?.comments}",
"sAMAccountName": "${user.systemUserName}",
"sn": "${user.lastname}",
"title": "${user.title}",
"serialnumber": "${user.customproperty1}",
"office": "${user.OrgunitID}",
"whenHired": "${user.startdate}",
"endDate": "${user.enddate}",
"useraccountcontrol": "${user.HRStatus}",
"initials": "${user.middlename}",
"userprincipalname": "${user.email}"
}

Account name rule:

CN=${user.systemUserName},OU="" (OU value)

 

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

can you share logs in text file

Sample Json:-

{

  "co": "${user.country}",

  "department": "${user.costcenter}",

  "description": "Created through Saviynt",

  "displayname": "${user.displayname}",

  "division": "${user.departmentNumber}",

  "employeeID": "${user.employeeid}",

  "employeeType": "${user.employeeType}",

  "givenName": "${user.firstname}",

  "info": "Assoc Nbr: ${user.employeeid} Operator ID: ${user.systemUserName} Service Date: ${user.customproperty51} Role: ${user.jobcodedesc}",

  "l": "${user.city}",

  "mail": "${user.email}",

  "mobile": "${user.customproperty8}",

  "otherTelephone": "${user.customproperty14}",

  "postalCode": "${user.customproperty5}",

  "sAMAccountName": "${user.systemUserName}",

  "sn": "${user.lastname}",

  "st": "${user.state}",

  "streetAddress": "${user.street}",

  "telephoneNumber": "${user.phonenumber}",

  "thumbnailPhoto": "${user.customproperty65}",

  "title": "${user.title}",

  "userPrincipalName": "${user.systemUserName}@removed.com",

  "objectClass": [

    "top",

    "person",

    "organizationalPerson",

    "user"

  ]



Note: The mapping provided in this example JSON is for illustration purposes only. It should be adjusted according to your specific system/setting requirements.


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

Rohit_Mishra
New Contributor II
New Contributor II

Hi Rishi,

Thanks for the Reply, please find the attached logs in text and csv both. Please search with error you'll get the error.

FYI, I tried with removing some attribute it worked
{
"accountExpires": "0",
"mail": "${user.email}",
"manager": "${managerAccount == null ? '' : managerAccount.comments}",
"sAMAccountName": "${task.accountName}",
"userAccountControl": "512",
"userPrincipalName": "${user.customproperty8}",
"description": "Created by Saviynt",
"objectclass": [
"top",
"person",
"organizationalPerson",
"user"
]
}

 

In above json I passed manager as hard coded value it worked but when I am passing full json it  is not working.

Rohit_Mishra
New Contributor II
New Contributor II

sorry I missed the files, I am unable to upload .text please find the attached .csv file 
ERROR
,"ERROR","Error while creating account in AD - [LDAP: error code 16 - 00000057: LdapErr: DSID-0C0911AD, comment: Error in attribute conversion operation, data 0, v3839 ]"
"2024-05-06T11:21:05.581+00:00","ecm-worker","","null-8dhbh","","javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C0911AD, comment: Error in attribute conversion operation, data 0, v3839 ]; remaining name 'CN=N623155,OU=Saviynt_Test,OU=EHC_Test,DC=eushc,DC=org' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3282) at

Did you found which attribute causing issue.


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

Rohit_Mishra
New Contributor II
New Contributor II

Hi Rishi, yes I got it

Please help me on this 5 attributes, I am getting this error
The error message "LDAP: error code 68 - 00000524: UpdErr: DSID-031A11F8, problem 6005 (ENTRY_EXISTS), data 0   (while using username)

and this 

Error while creating account in AD - [LDAP: error code 16 - 00000057: LdapErr: DSID-0C0911AD, comment: Error in attribute conversion operation, data 0, v3839 (while using others, this  is same as above error)

"userPrincipalName": "${user.email}",

"physicalDeliveryOfficeName": "${user.OrgunitID}",

"office": "${user.OrgunitID}",

"endDate": "${user.enddate}",

"emailaddress": "${user.email}",

"userprincipalname": "${user.email}"

This attributes are giving above error 

Raghu
Valued Contributor III
Valued Contributor III

@Rohit_Mishra  can you below on and replace prvoided one and check

Remove this ----"manager": "${managerAccount == null ? '' : managerAccount.comments}"

Replace-Add it below

"manager": "${ if (managerAccount == null || managerAccount?.accountID == null || managerAccount?.accountID == '' ){''} else {managerAccount?.accountID} }"


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

  • Does user have email ? as UPN is mandatory
  • "physicalDeliveryOfficeName": "${user.orgUnitID}",

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