Provisioning failed email notification

Morning Team,

Is there an email template that we can enable when Provisioning fails for an identity?

I don’t believe there is an OOB template that can be enabled, but this can be achieved using workflows.

You can set a trigger using the ‘provisioning completed’ trigger (filter on a provisioning result of ‘failed’) and use that to send an email.

One thing to consider is that there are a LOT of provisioning operations in IDN. This will be evaluated all the time. I’m not 100% certain how the filtering works on the back end, or what kind of resources it consumes when a provisioning result doesn’t match the filter. Additionally, if you have some issue on a source level, this could result in thousands of emails being sent in a short period of time.

Another option, which could be less overwhelming on the system, and the recipients, would be to configure a report from the Search module, using a query like:

type:provisioning AND created:[now-1d TO now] AND status:FAILED

which would send the report of all provisioning failures in the last 24 hours, and set it up as a subscription to be delivered daily.

1 Like

Hi Dylan,

Ahhhh I didn’t even think about a subscription. This is good information. Have you seen a use case, without workflows, where a SNOW Incident was created when a Provisioning item fails?

1 Like

If you want to do it for each specific failed provisioning item as it fails, then I don’t think you could do it without workflows.

If you just want it daily, you could set up the subscription to email ServiceNow, then create the incident based on that email being received.

You could also set that search and subscription to be more often than 1/ day

1 Like

I second Dylan’s solution. Both of the options he proposes are what I would recommend as well. Dylan brings up a good point about the volume of failed provisioning events being potentially troublesome as an email from workflows. I would probably go with a scheduled search myself.

1 Like