Reference > Functions reference > Get functions > Get(AccountName)


Returns the authenticated account name being used by the file's current user.


Get ( AccountName )



Data type returned 


Originated in 

FileMaker Pro 7.0


If a user authenticates with the default Admin account, Get(AccountName) returns Admin. If the FileMaker Pro Advanced Guest account is used, then [Guest] will be returned.

When an account authenticates via an external server, the FileMaker ID identity provider system, or an OAuth identity provider with group credentials, Get(AccountName) returns the name of the authenticated account being used by the current user of the file, not the group the user is in. (The group name appears in the Manage Security dialog box when you define account access and privileges in FileMaker Pro Advanced.)


Calculations should not depend on whether the account name returned by Get(AccountName) uses uppercase or lowercase letters. You can use a function such as Lower to change the returned text to a known case.

Example 1 

Returns when is the FileMaker ID user name that was used to sign in to the database file.

Example 2 

If a user enters BOB when signing in to the Bob account (a FileMaker file account), Get(AccountName) returns BOB.

Related topics 

Managing security

Get(UserName) function

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas