Add Account

Adds a new FileMaker file account.

Options 

  • Authenticate via is the type for the new account. Chose:

    • FileMaker file or External Server, then choose:

      • FileMaker File:

        • Account Name is the name for the new account.

        • Password is the password for the new account.

        • User must change password on next login forces users to change their password the next time they log in to the database.

        See Editing FileMaker file accounts.

      • External Server:

        • Group Name is the name of a group that is defined on an external authentication server.

        See Editing external server account access.

    • Apple Account, then for Account Name, enter the user's email address.

      See Editing Apple Account access.

    • Amazon or Google, then for Account Name, enter the user's email address.

    • Microsoft Entra ID or Custom OAuth, then choose:

      • User: For Account Name, enter the account defined by the OAuth identity provider.

      • Group: For Group Name, enter the group name (or object ID) defined by the OAuth identity provider.

      See Editing OAuth account access.

  • Privilege Set lets you assign a predefined privilege set for this account access or create a new privilege set.

    The Full Access privilege set cannot be assigned via this script step. Accounts with the Full Access privilege set must be created manually.

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go Yes
FileMaker WebDirect Yes
FileMaker Server Yes
FileMaker Cloud Yes
FileMaker Data API Yes
Custom Web Publishing Yes

Originated in version 

7.0

Description 

Account Name, Group Name, and Password can be literals stored with this script step, or generated at runtime based on calculations that you set up.

 

Notes 

  • This script step works only with FileMaker file accounts, external server accounts, Apple Accounts, and OAuth accounts. Claris ID and external IdP accounts aren't supported.

  • Each Account Name and Group Name value must be unique across both types of names in the current file. No name can be used for both an account and a group.

  • You must be assigned the Full Access privilege set to perform this script step. To enable users with less than full access privileges to perform this script step, right-click the current script in the scripts pane and choose Grant Full Access Privileges.

Example 1 

Adds a new user account with data entry only privileges. Requires you to change the password the next time you log in to the account.

Copy
Add Account [ Authenticated via: FileMaker ; Account Name: "User" ; Password: "1234" ; Privilege Set: [Data Entry Only] ; Expire password ]

Example 2 

Adds a new custom OAuth account with read-only privileges using the group name in the custom dialog box.

Copy
Show Custom Dialog ["Do you want to add account access for a new OAuth group?" ; $GroupName ]
If [ Get ( LastMessageChoice ) = 1 ]
    Add Account [ Authenticate via: Custom OAuth ; Group Name: $GroupName ; Privilege Set: [Read-Only Access] ]
End If

Example 3 

Adds a new data entry only account unless the current user has read-only privileges. Uses the current user's name for the new account name.

Copy
If [ Get ( AccountPrivilegeSetName ) ≠ "[Read-Only Access]" ]
    Add Account [ Authenticated via: FileMaker ; Account Name: Get ( UserName ) ; Password: "1234" ; Privilege Set: [Data Entry Only] ; Expire password ]
Else
    Show Custom Dialog [ "You do not have enough privileges to add an account." ]
End If