Get(UserName)
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 version
6.0 or earlier
Description
For each type of FileMaker client, this function returns the following:
For client | Returns |
---|---|
FileMaker Pro | the user name specified by the user in Preferences (see Setting general preferences) |
FileMaker Go | the user name specified by the user in the Settings menu |
FileMaker WebDirect | the value [WebDirect-<xxxxx>], where <xxxxx> is the last five digits of the current persistent ID (see the Get(PersistentID) function) |
FileMaker Script Engine (server-side scripts) |
|
FileMaker Data API, Custom Web Publishing, ODBC/JDBC, OData |
the account name used to authenticate |
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.
Example 1
Returns Sharon Lloyd when Sharon Lloyd is the current user. For an example script, see Add Account script step.