How is possible to view in Sailpoint IDN errors of a create after rule?

Hello everyone, I created a create after rule in which i’m calling a powershell script inside the IQService that sets the password of the created account and send it trough email to him. How it is possible to visualize in Sailpoint erorrs of the script? For example , what happens if the mail server is down and the script is unable to send the mail properly? Can I throw an exception and see it on Sailpoint? Thanks

Hi @s_tartaglione,

You cannot visualize the After Rule executions or errors through SailPoint ISC as the rules are executed outside of ISC.

You will need to setup the logging in the script to have the errors logged in within your IQService server.

Ok , so how I can handle the errors of powershell script? How an user that requests an account for AD knows if the mail has been sent or not to the recipient? There isn’t a way to show the creater after rule errors (the one that I upload to Sailpoint via API not the powershell script)

You can handle the error in the catch block of the Powershell script (within IQService server).

The recipient details/email can be referenced and send out to them in case of script execution errors.

What if the server on which I’m sending mails is not responding?