Post-action scripts
For more information, see Post-actions and AD target system variable reference.
Warning
All your API calls must be wrapped in the script's if (-Not($dryRun -eq $true)) { }
block. Otherwise, your production code will run during script previews.
There are five post-action account scripts. In each script, you get $person, $manager, $accountReference, $managerAccountReference, and $entitlementContext ($eRef). Use them to make API calls into the AD target system.
Account Create post-action script
Runs after each Account Grant entitlement action. Note that mailbox creation and home directory creation are part of that entitlement action, if you've set up the Exchange and Directories features.
Account Enable post-action script
Runs after each Account Access Grant entitlement action.
Account Update post-action script
Account Disable post-action script
Runs after each Account Access Revoke entitlement action.