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