Post User Registration Action is not Triggered
Last Updated:
Overview
This article addresses an issue where a Post User Registration Action fails to trigger as expected after a new user completes registration.
Applies To
-
Database connections
-
Passwordless connections
Cause
This issue can occur for several reasons:
-
The Post User Registration Action is not in a DEPLOYED status.
-
The Action is not added to the Post User Registration Flow.
-
The Action is being used with an unsupported connection type, such as a Social or Enterprise connection.
Solution
Follow these steps to troubleshoot the issue:
-
Verify the Action is in a DEPLOYED status, not BUILT.
-
Confirm the Action is added to the Post User Registration Flow.
-
Confirm the Action is used with a Database or Passwordless connection. Post User Registration Actions do not run for Social or Enterprise connections.
-
To monitor the execution, view the Action logs.
-
Create and deploy a sample Action for testing:
exports.onExecutePostUserRegistration = async (event, api) => { console.log(event.user); }; -
Sign up as a new user in the application or use the
POST /api/v2/usersManagement API endpoint to create a user. -
Check the Action logs for the
console.logoutput. -
If the output is displayed, the Action is triggering correctly.
-
If the issue persists after following these steps, contact Auth0 support.