Resource: auth0_organization_connections

With this resource, you can manage enabled connections on an organization.

Example Usage

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
  }
}

Schema

Required

Read-Only

Nested Schema for enabled_connections

Required:

Optional:

Import

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"