FileMaker Command - Get ( AccountName )
Igeek take a look at this FileMaker database command.
Returns the authenticated account name being used by the file's current user.
Get ( AccountName )
Data type returned
FileMaker Pro 7.0
Use this function for FileMaker authentication. If a user is using the default Admin account, Get(AccountName) returns Admin. If a user is using the FileMaker Pro guest account, then [Guest] will be returned.
When an account authenticates via an external server 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 database file, not the group the user belongs to (the group name appears in the Account list when you define accounts and privileges in FileMaker Pro). If an individual belongs to more than one group (account), the first group name listed when you choose View By Authentication Order while defining accounts and privileges determines access for the user.
Get(AccountName) returns the account name as it was entered by the user. When a user logs in, the account name is not case sensitive, so Get(AccountName)'s result may not be identical to the account name as it appears in the Manage Security dialog box. If you specify the context for the current calculation, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.