Prevent Welcome Email/Verification Email to Customer with SSO Setup

Hi @timwashington,

Similar to this topic, unfortunately, the welcome email is either sent to all new users or no one.

However, you can disable the welcome email and email verification email for everyone and use a rule to only send the emails to some users: Customize Email Handling.

For the welcome email, you would need to set up your own email endpoint as you can’t trigger the Auth0 welcome email, but you can use the Management API to send the email verification template like so:

  var ManagementClient = require('auth0@2.9.1').ManagementClient;
  var management = new ManagementClient({
     token: auth0.accessToken,
     domain: auth0.domain
  });
  var params = {
       user_id: '{USER_ID}'
  };

   management.sendEmailVerification(params, function (err) {
       if (err) {
             // Handle error.
       }
   });
}
1 Like