User Action and Reason Settings

On this page

The Admin UI manages User Actions and Reasons on Settings -> User Actions . For how User Actions work, see User Actions. To manage the same objects with the API, see the User Actions API and the User Action Reasons API.

User Action Form#

Id
  • Optional

A UUID for the User Action. When you leave out the Id, FusionAuth generates one. You can't change the Id after you create the User Action.

Name
  • Required

A unique name for the User Action.

Webhook transaction
  • Required

How many webhooks must succeed before FusionAuth commits the User Action instance. The values are:

  • None - No Webhooks are required to succeed for the FusionAuth transaction to be committed.
  • Any - Only a single Webhook is required to succeed for the FusionAuth transaction to be committed.
  • SimpleMajority - A simple majority (50% or more) of Webhooks are required to succeed for the FusionAuth transaction to be committed.
  • SuperMajority - A super majority (2/3 or more) of Webhooks are required to succeed for the FusionAuth transaction to be committed.
  • AbsoluteMajority - Every Webhook must succeed for the FusionAuth transaction to be committed.
Make action time-based
  • Optional
  • Defaults to false

Whether the User Action is temporal. A temporal User Action has a duration, and FusionAuth starts and ends each instance. A temporal User Action can't have Options.

Prevent login during action
  • Optional
  • Defaults to false

Whether the user can't log in while an instance of the User Action is in effect. The field appears when Make action time-based is on.

Send event when action ends
  • Optional
  • Defaults to false

Whether FusionAuth calls webhooks when an instance of the User Action ends. The field appears when Make action time-based is on.

Notify users when action is taken
  • Optional
  • Defaults to false

Whether the webhook event includes a notification flag, notifyUser. FusionAuth doesn't contact the user. Your webhook target reads the flag and notifies the user.

Options Tab#

Options are the choices an administrator can pick when applying an instantaneous User Action, such as the answers to a survey. FusionAuth includes the chosen Option, and the localized Option, in the webhook event and in the email template.

Option name
  • Required

The name of the Option, and the default text when no localization matches. Code that applies the User Action sends this name in the option field, so keep the name stable. For more information, see Name Options for Code.

Localizations
  • Optional

Translations of the Option, each with a locale and a text. FusionAuth picks the translation from the preferred languages of the Actionee.

Localization Tab#

Locale
  • Optional

The language of a translated User Action name.

Text
  • Optional

The User Action name in that language. Emails and webhook events can use the localized name.

Email Tab#

Email user when action is taken
  • Optional
  • Defaults to false

Whether FusionAuth emails the Actionee with the templates below.

Include email info in webhook event
  • Optional
  • Defaults to false

Whether the webhook event includes information about the email that FusionAuth sends.

Start template
  • Optional

The email template for a new instance. For a temporal User Action, FusionAuth sends the email when the instance starts. Required when Email user when action is taken is on.

Modify template
  • Optional

The email template for a modified instance of a temporal User Action. Required when Email user when action is taken is on for a temporal User Action.

Cancel template
  • Optional

The email template for an instance that an administrator cancels before the instance ends. Required when Email user when action is taken is on for a temporal User Action.

End template
  • Optional

The email template for an instance that ends. Required when Email user when action is taken is on for a temporal User Action.

Reason Form#

To manage Reasons, click Reasons on the User Actions page.

Id
  • Optional

A UUID for the Reason. When you leave out the Id, FusionAuth generates one. You can't change the Id after you create the Reason.

Text
  • Required

The text that administrators see when they apply a User Action. The webhook event includes the text as reason when an administrator picks the Reason.

Code
  • Required

A short code for software. The webhook event includes the code as reasonCode.

Localization
  • Optional

Translations of the Reason text, each with a locale and a text.