Transform to create Email & check for unique value

Hi,

I am working on creating a transform in SailPoint IdentityNow to generate an email address for identities where the mail attribute is null. The email format I need to generate is: [email protected].

I am using the firstValid operation in the transform, and identities with an existing mail attribute are correctly getting their email based on the account attribute. But, I am stuck when the mail attribute is null.

Additionally, I need to apply a condition based on the number attribute to generate the correct domain:

For number= 10, the domain should be @abc.com.
For number=20, the domain should be @xyz.com.

After generating the email for those with a null mail attribute, I need to ensure that the generated email doesn’t already exist with any other account (i.e., it should be unique). How can I check if the generated email already exists in the system before assigning it?

Could anyone help with how to handle the null mail case, apply the conditional logic for the domain based on number, and check the uniqueness of the generated email?

Thanks

Hi,

You cannot check uniqueness with a transform. You need to create identity attribute rule.

Below is the documentation of same. Please review.

-Abhinov

If you generating the email for new users in target source please go with Attribute Generator rule. Below is the documentaion pls review and proceed with your code here.

I believe this is similar requirement to this post , please check this if it solves the use-case: How can I generate a identity attribute only on identity creation? - #2 by iamnithesh

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.