activeUser

Syntax

Session.activeUser;

Access

readonly

Parameters

Return value string

The (short) user name.

Description

The activeUser property is used to get the user’s short name of the user currently logged in. It returns empty when not logged in.

For more info about the Session object please see the entSession documentation.

Examples

Get the name of the user currently logged in

When activeUser is empty, there is no active session.

// Get the name of the user currently logged in.
var sessionObject = app.entSession;
var userShortName = sessionObject.activeUser;

// userShortName is now 'Joe'.

Supported versions

Adobe Version Supported
CC 2017
CC 2018
CC 2019
2020

See also