Reference

On this page

These are the events that FusionAuth generates that can be optionally consumed by your registered Webhook. To choose which events a webhook receives programmatically, set eventsEnabled with the Create a Webhook or Update a Webhook API.

Breached Password Events#

These are the Breached Password licensed events that may FusionAuth generates that can be optionally consumed by your registered Webhook.

Starter plan required

This feature requires at least a Starter plan.

  • User Password Breach - when ReactorThe FusionAuth system that manages licenses and paid features. detects a user is using a potentially breached password

Threat Detection Events#

These are the Threat Detection licensed events that may FusionAuth generates that can be optionally consumed by your registered Webhook.

Enterprise plan required

This feature requires an Enterprise plan.

Tenant Scoped Events#

Tenant scoped events are generated for all applications in a tenant or for none of them.

All user events are tenant scoped because a user is a tenant scoped entity. For example, the user.delete, user.create, user.update, and user.deactivate events are all tenant scoped.

A tenant scoped event can, however contain an applicationId which can be used to filter events when received. One example is user.registration.create.

Application Scoped Events#

Caution

This documentation is for versions earlier than 1.37.0. Application scoped events are not supported on versions later than 1.37.0. If you are on a version earlier than 1.37.0 and you want to get events for certain applications, the preferred method is to send events for a tenant. Filter on the applicationId when consuming the event and discard events from any applications not of interest.

Please don't use application scoped webhook functionality.

Prior to version 1.37.0 these events could be application scoped:

  • jwt.public-key.update
  • jwt.refresh-token.revoke
  • user.action

Transaction Compatibility#

Events can be either transactional or non-transactional. The final state of the operation which caused a transaction event is not persisted to FusionAuth until after the configured webhook finishes. Non-transactional events do not require any webhooks to succeed.

To learn more about writing webhooks, see Writing a Webhook.

For more information on event transaction configurations, see transaction setting under Tenant Settings.

Event Order#

One operation can send several events. Each event page lists the operations that send the event under Triggers.

When you create a user and a registration in one request, FusionAuth creates the user first and then creates the registration. The same happens when a new user logs in with an Identity Provider. FusionAuth sends the events in the following order:

  1. user.create, before the user commits. A request for the user returns a 404 while the webhook runs.
  2. user.create.complete, after the user commits.
  3. user.registration.create, before the registration commits. The user exists, but a request for the registration returns a 404 while the webhook runs.
  4. user.registration.create.complete, after the registration commits.

FusionAuth sends a .complete event after the operation commits. To read or modify an object from a webhook, handle the .complete event, such as user.create.complete.

During a Generic or LDAP Connector login, FusionAuth sends every event before the login commits, including the .complete events. A webhook can't retrieve the user or the registrations during those events.

Webhook requests can arrive in a different order than FusionAuth sends the events. Use the commit point of each event instead of the arrival order.