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

CHECKFORUNIQUE/ACCOUNTNAMERULE causes issue while evaluating the rules for AD

BalajiEpari
New Contributor III
New Contributor III

Hi Team,

We are integrating Saviynt with AD, we are getting issue which creating a user account by incrementing the CN value if the same CN value exists.

To evaluate the uniqueness of CN value we defined below rule in CHECKFORUNIQUE.

{"cn": "${user.firstname + ' ' + user.lastname}###${user.firstname + ' ' + user.lastname}1"}

 

ACCOUNTNAMERULE:

CN=${user.firstname + ' ' + user.lastname},${DynBaseDN}###CN=${user.firstname + ' ' + user.lastname}1,${DynBaseDN}

 

Error:

BalajiEpari_0-1693489386746.png

In AD, only user with CN=Gopal Tiwari exists. but while we are trying to provision, we are getting ENTRY_EXISTS.

Can someone pls suggest.

 

Regards,

Balaji Epari

 

11 REPLIES 11

pmahalle
All-Star
All-Star

Hi @BalajiEpari ,

Use below ACCOUNTNAME Rule and check:

CN=${user.firstname} ${user.lastname},${DynBaseDN}###CN=${user.firstname} ${user.lastname}1,${DynBaseDN}


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

BalajiEpari
New Contributor III
New Contributor III

Hi @pmahalle 

 

Getting same issue with this as well.

 

Regards,

Balaji Epari

BalajiEpari
New Contributor III
New Contributor III

Hi Team,

Can someone pls guide on this.

 

Regards,

Balaji Epari

Hi @BalajiEpari ,

Share your logs.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

BalajiEpari
New Contributor III
New Contributor III

Hi @pmahalle 

PFA Logs,

Regards,

Balaji Epari

BalajiEpari
New Contributor III
New Contributor III

Hi Team,

Can someone pls suggest on this issue.

Regards,

Balaji Epari

Hi @BalajiEpari ,

Share your createaccount json


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

BalajiEpari
New Contributor III
New Contributor III

Hi @pmahalle 

CreateAccountJson

{
"cn": "${user.firstname} ${user.lastname}",
"givenname": "${user.firstname}",
"name": "${user.customproperty6}",
"objectClass": ["top", "person", "organizationalPerson", "user"],
"userAccountControl": "544",
"sAMAccountName": "${user.firstname} ${user.lastname}",
"sn": "${user.lastname}",
"hondaGUID": "${user.customproperty6}",
"mail": "${user.email}",
"employeeNumber": "${user.customproperty5}",
"company": "${user.companyname}",
"department": "${user.departmentname}",
"division": "${user.customproperty14}",
"l": "${user.city}",
"postalCode": "${user.customproperty2}",
"st": "${user.state}",
"streetAddress": "${user.street}",
"telephoneNumber": "${user.phonenumber}",

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

"homeDirectory": "${DynHomeDir}${user.customproperty6}"

}

 

Note: I have tried "cn": "${cn}" as well, still same issue.

 

Regards,

Balaji Epari

BalajiEpari
New Contributor III
New Contributor III

I have also tried by adding sAMAccountName in CHECKFORUNIQUE as below still same issue.

{
"cn":"${user.firstname} ${user.lastname}###${user.firstname} {user.lastname}1",
"sAMAccountName":"${user.firstname} ${user.lastname}###${user.firstname} {user.lastname}1"
}

Hi @BalajiEpari ,

"cn": "${cn}" in your create account JSON.

ACCOUNTNAME :

CN=${user.firstname} ${user.lastname},${DynBaseDN}###CN=${user.firstname} ${user.lastname}1,${DynBaseDN}

CREATEACCOUNT JSON:

{
"cn": "${cn}",
"givenname": "${user.firstname}",
"name": "${user.customproperty6}",
"objectClass": ["top", "person", "organizationalPerson", "user"],
"userAccountControl": "544",
"sAMAccountName": "${user.firstname} ${user.lastname}",
"sn": "${user.lastname}",
"hondaGUID": "${user.customproperty6}",
"mail": "${user.email}",
"employeeNumber": "${user.customproperty5}",
"company": "${user.companyname}",
"department": "${user.departmentname}",
"division": "${user.customproperty14}",
"l": "${user.city}",
"postalCode": "${user.customproperty2}",
"st": "${user.state}",
"streetAddress": "${user.street}",
"telephoneNumber": "${user.phonenumber}",

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

"homeDirectory": "${DynHomeDir}${user.customproperty6}"

}


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

BalajiEpari
New Contributor III
New Contributor III

Hi @pmahalle 

I have already tried with "cn": "${cn}"  in create account json. still same issue.

ACCOUNTNAME :

CN=${user.firstname} ${user.lastname},${DynBaseDN}###CN=${user.firstname} ${user.lastname}1,${DynBaseDN}

Regards,

Balaji Epari