"Provisioning Completed" trigger using New Account Provisioned email template instead of customized Send Email Action template of workflow

Hi,

I configured workflow, “Provisioning Completed” trigger ($[?($.sources == “AD Accounts”)])-> Compare Strings ($.trigger.accountRequests[*].accountOperation equals Create)-> (True) Get Identity → Send Email as shown in image attached.

When I use test data it is working fine but when I enable workflow and try to create user and auto provision Ad account email is sent using New Account Provisioned email template instead of customized Send Email Action template of workflow and recipient details as [email protected].

When I did observe I see below snippet added to AD source

{
    "accountCreateNotification": {
                "notifyAccountManager": false,
                "accountIdAttribute": "Account_Id",
                "notifyList": null,
                "notifyAccountOwner": true,
                "enabled": true,
                "notifyAccountOwnerAltEmail": false
            }
}

This is how it works we don’t need to enable workflow and use above snippet for provisioning emails where we require? (after disabling workflow still I see this snippet in source)
If I have to do for modify account similar way it works? Is this known ?

1 Like

As stated above, there is an OOTB email template that sends an email notification upon new account creation: New Account Provisioned Email Template - SailPoint Identity Services

Is there a reason you need to create a workflow instead of leveraging the email template?

Yes we want to send it only for few in scope users not all users which got Active Directory Provisioned. I assume purpose of this trigger is to filter out users.

This code is reflected in your source configuration as you may have set it using API. When this is enabled, it will send the New Account Provisioned email as per configuration above.

You can disable it and use your custom workflow in case you have specific requirements/scenarios around sending this email.

Thank you. I did disable this in source code and try workflow. It didn’t work in my case, no email generated for Provisioning completed trigger. Please let me know if it works.

If you haven’t already, please submit a support ticket. This might be a bug.

I tried the workflow you’ve posted and it worked for me. I was able to receive email. Can you test/verify the workflow steps for given input/output.

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