Creating users in terraform needs the client 'id' which is not available

stephanie.chamblee
Mon, 08 Feb 2021 14:00:48 +0000

Hi @arthuston-abacus,

The property enabled_clients passed to POST/api/v2/connections refers to all of your tenant’s applications which support a connection.

A connection is the relationship between Auth0 and a source of users. For example, google-oauth2 is a social connection that allows Auth0 to obtain profile/email info from gmail users.

To create users in a connection, you can use the POST/api/v2/users endpoint and pass the connection name.

For example, this request will create a user for the connection named “Username-Password-Authentication”:

{
  "email": "john.doe@gmail.com",
  "user_metadata": {},
  "blocked": false,
  "email_verified": false,
  "app_metadata": {},
  "given_name": "John",
  "family_name": "Doe",
  "name": "John Doe",
  "nickname": "Johnny",
  "picture": "https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480&r=pg&d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png",
  "user_id": "abc",
  "connection": "Username-Password-Authentication",
  "password": "supersecret123!@#",
  "verify_email": false,
  "username": "johndoe"
}