SBM ModScript Reference → Programming SBM ModScript → Shell Properties → Shell Property Descriptions → User Shell Properties
User shell property accessors are defined when there is a current user.
User object (input). The "current user" for the script and is always the logged-in user, except when used with the Notification context. In the Notification context, the script is executed once per subscriber, with Shell.User() referring to the subscriber being processed. If there are no subscribers, the script is executed one time with Shell.User() equal to the value Nothing.
string (output). Returns the user's SSO token in Base64-encoded format.
Example:
var token = Shell.UserToken();
bool (output). Returns true if the user is currently being impersonated.
Example:
var impersonated = Shell.IsActingAsAnotherUser();
long (output). If the shell context has a User property, and if the user is being impersonated, this returns the actual user's ID.
Example:
var actualId = Shell.ActingAsAnotherUserID();
string (output). Returns the namespace table prefixes for the user (this prefix is added to the dbname of every primary and auxiliary table when a process app is deployed to a namespace).
long (output). Returns the user's namespace ID.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.