This resource is used to manage the assignment of members and their roles within an organization.
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
}
organization_id
(String) The ID of the organization to assign the member to.user_id
(String) ID of the user to add as an organization member.id
(String) The ID of this resource.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"