We are working on a requirement where we need SailPoint to create Exchange linked mailbox in a different domain than the user’s AD domain. We’re handling the provisioning using a PowerShell script executed from SailPoint connector after rule.
The behavior is strange:
-
The same New-Mailbox command works when we run it manually using powershell ISE.
-
When the exact same command runs through SailPoint, the script completes, the Write-Output statements appear that the rule is executed , but New-Mailbox does nothing. No mailbox is created and SailPoint doesn’t show any errors or exceptions.
-
Try/catch doesn’t capture anything.
-
Other Exchange commands like Remove-Mailbox are working fine from SailPoint, so PowerShell execution is happening and the module seems to be loaded.
Any guidance or advice would be appreciated.