$ActiveUser

Overview

Active user identity.

const $ActiveUser;

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.

Example

How to get active user id and name:

var user = $ActiveUser; var userId = user.Id; var userName = user.Name;

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.