Scripting $ActiveUser¶ Represents the identity of the currently active user. 1const $ActiveUser: Identity; Remarks¶ This variable is available in screen scripts and server modules acting on behalf of a user. It is not guaranteed in instance lifecycle scripts; use $Initiator when the script needs the identity that started the instance. Getting the active user's ID and name¶ 1 2 3var user = $ActiveUser; var userId = user.Id; var userName = user.Name; Use the active identity in an authorization-sensitive lookup¶ 1var canExecute = $Domain.HasPermission($ActiveUser, "Default", 16); Capabilities¶ Properties¶ $ActiveUser.Domain: The unique identifier of the domain where the identity is defined. $ActiveUser.EMailAddress: The identity's email address, when it is available from the membership provider. $ActiveUser.Id: The unique identifier of the identity. $ActiveUser.Name: The display name of the identity. $ActiveUser.Type: The type of identity.