Resource: auth0_organization_member

This resource is used to manage the assignment of members and their roles within an organization.

Example Usage

resource "auth0_user" "user" {
  email           = "test-user@auth0.com"
  connection_name = "Username-Password-Authentication"
  email_verified  = true
  password        = "MyPass123$"
}

resource "auth0_organization" "my_org" {
  name         = "org-admin"
  display_name = "Admin"
}

resource "auth0_organization_member" "my_org_member" {
  organization_id = auth0_organization.my_org.id
  user_id         = auth0_user.user.id
}

Schema

Required

Read-Only

Import

Import is supported using the following syntax:

# This resource can be imported by specifying the
# organization ID and user ID separated by "::" (note the double colon)
# <organizationID>::<userID>
#
# Example:
terraform import auth0_organization_member.my_org_member "org_XXXXX::auth0|XXXXX"