gitlab_group_ldap_link (Resource)

The gitlab_group_ldap_link resource allows to manage the lifecycle of an LDAP integration with a group.

Upstream API: GitLab REST API docs

Example Usage

resource "gitlab_group_ldap_link" "test" {
  group_id      = "12345"
  cn            = "testuser"
  group_access  = "developer"
  ldap_provider = "ldapmain"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# GitLab group ldap links can be imported using an id made up of `group_id:ldap_provider:cn:filter`. CN and Filter are mutually exclusive, so one will be missing.

# If using the CN for the group link, the ID will end with a blank filter (":"). e.g.,
terraform import gitlab_group_ldap_link.test "12345:ldapmain:testcn:"

# If using the Filter for the group link, the ID will have two "::" in the middle due to having a blank CN. e.g.,
terraform import gitlab_group_ldap_link.test "12345:ldapmain::testfilter"