CreateUser Event
The CreateUser Event is triggered whenever a new user is created. A task attached to this event may be restricted to one or more types of organisation (e.g. ISV or Client) using the event filter.
Powershell Variables
The following variables are available to a Powershell script attached to this trigger:
- $User - Describes the user which is being added. This variable is of type UserScriptObject.
Examples
$AccountName = $($User.AccountName)
$OrgName = $($User.Org.Name)
$OrgType = $($User.Org.Template.Name)
Legacy Support
The following legacy variables are available to a Powershell script attached to this trigger - they are provided for backward compatability only and should not be used in new scripts:
Warning
These variables are obsolete and will not be supported in the future
- userName - The account name of the new user.