This resource is used to manage members of an organization.
resource "auth0_user" "user_1" {
connection_name = "Username-Password-Authentication"
email = "myuser1@auth0.com"
password = "MyPass123$"
}
resource "auth0_user" "user_2" {
connection_name = "Username-Password-Authentication"
email = "myuser2@auth0.com"
password = "MyPass123$"
}
resource "auth0_organization" "my_org" {
name = "some-org"
display_name = "Some Organization"
}
resource "auth0_organization_members" "my_members" {
organization_id = auth0_organization.my_org.id
members = [auth0_user.user_1.id, auth0_user.user_2.id]
}
members
(Set of String) Add user ID(s) directly from the tenant to become members of the organization.organization_id
(String) The ID of the organization to assign the members to.id
(String) The ID of this resource.Import is supported using the following syntax:
# This resource can be imported by specifying the organization ID.
#
# Example:
terraform import auth0_organization_members.my_org_members "org_XXXXX"