Auth0 Home Blog Docs

Unable to create user with verified email [ POST - /api/v2/users ]

auth0
api
management-api

#1

I’m trying to create new user with management API, but I have some troubles.
It create my user, but user’s email is not verified even if I set email_verified : true & verify_email : false in request body.

Why email_verified field is overwritten to false ?

Request body:

{ 
  user_id: 1,
  client_id: 'my-client-id',
  connection: 'Username-Password-Authentication',
  email: my@mail.com',
  password: 'mypass',
  **email_verified: true**,
  **verify_email: false**
}

Server response:

{ 
  _id: '423b683346a5a9f23558077015',
  **email_verified: false**,
  email: 'my@mail.com' 
}