Send an Email Notification When a User Email Address Is Updated in Auth0

Overview

Auth0 can trigger a notification email to a user to confirm that their email address was changed. Achieve this by using Event Streams or by listening to log events of type sce (Success Change Email).

Applies To

  • Auth0
  • User Profile Update
  • Actions
  • Email Notifications
  • Event Streams

Solution

How is an email notification triggered when a user's email address is updated?

Use one of two methods to send a notification to a user when their profile is updated.

 

Event Streams provide extensibility to trigger workflows when certain events happen to users or other entities. When a subscribed event occurs, Auth0 routes an event payload to either a Webhook, Actions, or Amazon EventBridge, allowing the creation of event-driven workflows.

 

NOTE: The event provides the full updated profile, not what specifically has changed, so the event payload would need to be compared with local records, or for an email address change, look for type "sce" (Success Change Email) logs when the event is seen via the log search endpoint for the relevant user ID.

 

Review the following resources for more information on Event Streams:

 

Alternatively, create a Log Stream with a Webhook or similar that listens to log events of type sce in logs, and send a notification to the user. The application or server must handle listening to the event and sending the notification.

 

Recommended content

No recommended content found...