With this resource, you can manage enabled connections on an organization.
resource "auth0_connection" "my_connection" {
name = "My Connection"
strategy = "auth0"
}
resource "auth0_organization" "my_organization" {
name = "my-organization"
display_name = "My Organization"
}
resource "auth0_organization_connection" "my_org_conn" {
organization_id = auth0_organization.my_organization.id
connection_id = auth0_connection.my_connection.id
assign_membership_on_login = true
}
connection_id
(String) The ID of the connection to enable for the organization.organization_id
(String) The ID of the organization to enable the connection for.assign_membership_on_login
(Boolean) When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.id
(String) The ID of this resource.name
(String) The name of the enabled connection.strategy
(String) The strategy of the enabled connection.Import is supported using the following syntax:
# This resource can be imported by specifying the
# organization ID and connection ID separated by "::" (note the double colon)
# <organizationID>::<connectionID>
#
# Example:
terraform import auth0_organization_connection.my_org_conn "org_XXXXX::con_XXXXX"