With this resource, you can manage enabled connections on an organization.
resource "auth0_connection" "my_connection-1" {
name = "My Connection 1"
strategy = "auth0"
}
resource "auth0_connection" "my_connection-2" {
name = "My Connection 2"
strategy = "auth0"
}
resource "auth0_organization" "my_organization" {
name = "my-organization"
display_name = "My Organization"
}
resource "auth0_organization_connections" "one-to-many" {
organization_id = auth0_organization.my_organization.id
enabled_connections {
connection_id = auth0_connection.my_connection-1.id
assign_membership_on_login = true
}
enabled_connections {
connection_id = auth0_connection.my_connection-2.id
assign_membership_on_login = true
}
}
enabled_connections
(Block Set, Min: 1) Connections that are enabled for the organization. (see below for nested schema)organization_id
(String) ID of the organization on which to enable the connections.id
(String) The ID of this resource.enabled_connections
Required:
connection_id
(String) The ID of the connection to enable for the organization.Optional:
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.Import is supported using the following syntax:
# This resource can be imported by specifying the organization ID.
#
# Example:
terraform import auth0_organization_connections.my_org_conns "org_XXXXX"