I just need an advise on can we send an email notification to Robotic ID/any ID owner’s which are aggregating to SailPoint from Azure AD using Account Aggregation Task?
Please advise on this. If yes, please suggest how can we do that. Thanks.
When aggregating Robotic IDs, if it is not correlated to existing Identity, you can use the creation rule to trigger an email notification. However, the owner of the Identity cannot be determined within this rule because the “manager” attribute is automatically set to false during the creation process.
Please refer the below logic.
import sailpoint.object.EmailOptions;
import sailpoint.object.EmailTemplate;
import sailpoint.object.Identity;
String id= account.getStringAttribute("id"); //display Attribute
if ( id != null ) {
if(id.startsWith("ROBOTID")){ //robot id expression
EmailTemplate emailTemplate = context.getObjectByName(EmailTemplate.class, templateName); // repace with actual template
EmailOptions emailOptions = new EmailOptions();
emailOptions.setTo("To Address");
context.sendEmailNotification(emailTemplate, emailOptions);
}
identity.setName(id);
}