EffectiveUserName (NotesAgentContext - JavaScript)

Read-only. The user name that is in effect for the current agent. For an agent running on a workstation, this is the name of the current user. For an agent running on a server, this is the name of the agent's owner (the person who last saved the agent).

Defined in

NotesAgentContext

Syntax

getEffectiveUserName() : string

Usage

In general, getEffectiveUserName and getUserName return the same value for a given program. The exceptions are agents that run on a server, where getEffectiveUserName is the name of the script's owner and getUserName is the name of the server on which the script is running.

If the user name is hierarchical, this property returns the fully distinguished name.

Language cross-reference

EffectiveUserName property in LotusScript® NotesSession class

EffectiveUserName property in Java Session class