Reference > Functions reference > Get functions > Get(UserName)
 
Get(UserName)
Purpose 
Returns the name of the FileMaker user, as specified in the General tab of the Preferences dialog box.
Format 
Get(UserName)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 6.0 or earlier
Description 
The returned name is user-specified.
Important  For greater security, use the Get(AccountName) function to track and manage user access: a user cannot change the account name used to log in to a database file.
In FileMaker WebDirect, this function returns [WebDirect-<xxxxx>], where <xxxxx> is the last five digits of the current persistent ID. See the Get(PersistentID) function.
In server-side scripts, this function returns:
the schedule name, if the script is run by a FileMaker Server schedule
<script name> - <account name> <x>, where <x> is the number of scripts run since the FileMaker Script Engine was started
Examples 
Returns Sharon Lloyd when Sharon Lloyd is the current user. For an example script, see Add Account script step.
Related topics 
Get(PersistentID) function
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas