Access to the user’s session.
Methods
# static getUserId() → {GUID}
Gets the current user’s GUID
.
GUID
of the current user
GUID
Example
mx.session.getUserId(); // "2533274790395905"
# static getUserRoleNames() → {Array.<string>}
Gets names of the current user’s roles.
names of the current user's roles.
Array.<string>
# static isGuest() → {boolean}
Determines if this is an anonymous session.
true
if the current user is anonymous, false
otherwise
boolean