Workflow to catch Create Account Errors

Hi! I am trying to create a workflow to catch account creation errors and send an email alert. I have the workflow built based on “Provisioning Completed” triggers – but it sends all provisioning errors (including Add entitlements – which is…. a lot).

How can I limit it to account creation with the trigger variables? I’ve seen other posts using a different method to capture those, but this one seems simpler if I can limit it to create only.

“body”: “A provisioning error occurred for source: $.trigger.sources \nError details: $.trigger.errors[0]”,

Thank you!

Hey Pamela,

You’re right - the “Provisioning Completed” trigger can be noisy. SailPoint provides a variable in the trigger context that you can use to filter and make it more specific. Take a look at this discussion of the same thing: Provisioning Completed Workflow Trigger Filtering - Identity Security Cloud (ISC) / ISC Discussion and Questions - SailPoint Developer Community

In that discussion, they talk about how to filter on account creation events, like you asked, in the workflow:
$.accountRequests[?(@.provisioningResult == 'committed' && @.provisioningTarget == 'Test Active Directory' && @.accountOperation == 'Create')]

Thanks Dalton!
I saw that one and it looked a lot more complicated than using provisioning trigger. But if that is the only way, I’ll give it a try.

1 Like

Sounds great, let us know if you need anymore support.

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