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

Active Directory CheckForUnique is not working

ashutoshkumar16
New Contributor II
New Contributor II

Hi Team,

We are checking uniquness of mail attribute during Active directory account provisioning.

But it is provisioning the duplicate mail and not updating to make it unique, same mail exist in the other active directory account. 

Checkforuniquenes  is not making the mail attribute unique and provisioning the duplicate value

below is the code snippet:

{

"mail": "${user.firstname.charAt(0)}${user.lastname}@XXXXX###${user.firstname.charAt(0)}${user.lastname}${
if(user.middlename!=null){if(user.middlename.length()>=1){user.middlename.substring(0,1)}else{user.middlename.substring(0,user.middlename.length())}}else{if(user.firstname.length()>=1){user.firstname.substring(0,1)}else{user.firstname.substring(0,user.firstname.length())}}}@XXXXX###${user.firstname.charAt(0)}${user.lastname}${
if(user.middlename!=null){if(user.middlename.length()>=2){user.middlename.substring(0,2)}else{user.middlename.substring(0,user.middlename.length())}}else{if(user.firstname.length()>=2){user.firstname.substring(0,2)}else{user.firstname.substring(0,user.firstname.length())}}}XXXXX"

}

Also, provisioning of AD account is successful.

Update : Seeing below error in the logs: 

Error while searching for mail=testuniqu1@XXXX-[LDAP: error code 32 - 0000208D: NameErr: DSID-0310021F, problem 2001 (NO_OBJECT), data 0, best match of:

[This message has been edited by moderator to merge reply content]

1 REPLY 1

prasannta
Saviynt Employee
Saviynt Employee

Hi @ashutoshkumar16 

Could you clarify where are you storing the email addresses? There are several articles to achieve uniqueness for email. I'm pasting below links for your reference.

https://forums.saviynt.com/t5/saviynt-knowledge-base/generate-email-based-on-primary-smtp-from-the-p...

https://forums.saviynt.com/t5/saviynt-knowledge-base/achieve-email-uniqueness-check-during-email-gen...

Thanks