Skip to content

$ActiveUser

Active user identity.

1
const $ActiveUser: Identity;

Remarks

This variable is only available in user context scripting like Module scripts.
Pre-work or post-work scripts are executed in system context and this variable is not available.

How to get active user id and name:

1
2
3
var user = $ActiveUser;
var userId = user.Id;
var userName = user.Name;