WHOAMI Function
The WHOAMI function returns the user ID or full user name for the currently connected user.
Syntax
WHOAMI(), WHOAMI(0), WHOAMI(1), or WHOAMI(2)
Example 1
WHOAMI() or WHOAMI(0)
-
Protection off
The functions return a blank string.
-
Protection on
The functions return the user ID.
Example 2
WHOAMI(1)
The function returns the user ID if protection is on or off.
Example 3
WHOAMI(2)
The function returns the full user name if protection is on or off.
Note: In CaseView documents not associated to any client file, WHOAMI(2) will return the user ID instead of the full user name.