Invite Users Created by the Management API

Overview

When creating users with the Management API:

  1. Will Auth0 send a confirmation email to those users created via Management API calls?
  2. When creating the user, will it require to set the password for the user?

Applies To

  • Management API
  • New Users
  • Invitation Email

Solution

When creating users via the management API, Verification and Welcome emails will be sent to the users if the corresponding Email Templates are enabled on the tenant settings.

The verification email can be disabled from being sent by using the verify_email parameter on the management API call to create the user. See the reference documentation for the Create a user endpoint’s accepted body parameters here:

If the welcome email template is enabled, it will be sent either after the user verifies their email or, if the verification email has been removed, immediately after user creation.

Regarding the user’s password, for a database-type connection, a password value should be passed during user creation. The password could then either be shared with the user, or they could be asked to perform a password reset flow to set their own password without needing the initial password.

For more information, see:

It is recommended to use the password change ticket approach so that the user can be provided a one-use link to reset their password in an invitation type email or through some other secure means. This approach is explained here:

Related References