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 version
7.0
Description
Claris platform only: Get(AccountName) returns the current user's Claris ID user name, even if the user authenticated via the Default account.
FileMaker platform only:
-
If a user authenticates with the default Admin account, Get(AccountName) returns Admin. If the FileMaker Pro Guest account is used, then [Guest] will be returned.
-
When an account authenticates via an external server, the Claris ID identity provider system, an external identity provider (IdP), 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.)
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 Claris ID user name that was used to sign in to the database file.
Example 2 (FileMaker platform only)
If a user enters BOB
when signing in to the Bob account (a FileMaker file account), Get(AccountName) returns BOB.