How to disable OTP email when creating new passwordless user

How can I totally disable the OTP email when creating new passwordless user using the management api?

I am trying to create a passwordless identity connection for all my existing users in the Username-Password-Database so that we can use Passwordless login in our app.

1 Like

Hi @bsoutendijk,

Welcome to the Auth0 Community!

I have tested this myself and was unable to reproduce the same behavior you encountered. When I created a passwordless email user with the Management API, I did not receive a login OTP code. Instead, I only received a welcome email.

As mentioned in our Passwordless Connections documentation, you must provide an email address to receive an OTP or magic link via email. This is referring to logging in through the login page.

If you decide to send an OTP code to your users conditionally, you can call the POST /passwordless/start endpoint.

Cheers,
Rueben

Ok, I think we are talking about the same email. Regardless of whether it is an OTP or “welcome email”, I do not want Auth0 to deliver ANY emails when I create the user via the management API. The verify_email: false flag works in the typical user create endpoint, but with passwordless it will sent the OTP email template. This OTP template “welcomes” the user based on some liquid syntax. There is no way I could find to disable it.

There are a million little issues with Auth0 like this, and this was the final straw. The poor developer experience caused our company to drop Auth0 completely this week. Goodbye

Hi @bsoutendijk,

Thanks for the reply.

If you want to prevent the welcome email as well, you can disable that email template by going to your Dashboard > Branding > Email Templates > Welcome Email and toggle off the Status.
image

Let me know if you have any further questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.