LOTUSSCRIPT/COM/OLE CLASSES


EffectiveUserName property
Example

Read-only. The user name that is in effect for the current script.

For a script running on:


Defined in

NotesSession

Data type

String

Syntax

To get: name$ = notesSession.EffectiveUserName

Usage

In general, the EffectiveUserName and UserName properties return the same value for a given script. The exceptions are agent scripts that run on a server, where EffectiveUserName is the name of the script's owner and UserName 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. To get only the common name, use the CommonUserName property in NotesSession. To get only the common name of the owner of a script that runs on a server, use the CommonOwner property in NotesAgent.

Language cross-reference

EffectiveUserName property in Java AgentContext class

Example
See Also