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

Get(AccountName)

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

Format 

Get ( AccountName )

Parameters 

None

Data type returned 

text

Originated in 

FileMaker Pro 7.0

Description 

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.)

Notes 

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 bob@example.com when bob@example.com 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