Enable Account

Enables or disables a FileMaker file account.

Options 

  • Account Name allows you to specify the name of the account to be activated or deactivated.

  • Activate account enables the specified account.

  • Deactivate account disables the specified account.

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

Notes 

  • This script step works only with FileMaker file accounts.

  • You must specify an existing account.

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

  • You cannot use this script step to deactivate an account with full access privileges.

Example 1 

Displays the contents of the Name field and prompts the user to activate an account with that name.

Copy
Show Custom Dialog ["Activate the " & Accounts::Name & " account?"]
If [Get ( LastMessageChoice ) = 1]
    Enable Account [Account Name: Accounts::Name; Activate]
End if

Example 2 

Deactivates the current account and prompts the user to log in to a different account.

Copy
Show Custom Dialog ["Deactivate the " & Get ( AccountName ) & " account?"]
If [Get ( LastMessageChoice ) = 1]
    Enable Account [Account Name: Get ( AccountName ); Deactivate]
    Re-Login [With dialog: On]
End if