Skip to content

Commit 9dc6804

Browse files
committed
Documenting resource.
1 parent c0cea8b commit 9dc6804

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
layout: "gitlab"
3+
page_title: "GitLab: gitlab_group_ldap_link"
4+
sidebar_current: "docs-gitlab-resource-group_ldap_link"
5+
description: |-
6+
Adds an LDAP link to an existing GitLab group.
7+
---
8+
9+
# gitlab\_group_ldap_link
10+
11+
This resource allows you to add an LDAP link to an existing GitLab group.
12+
13+
## Example Usage
14+
15+
```hcl
16+
resource "gitlab_group_ldap_link" "test" {
17+
group_id = "12345"
18+
cn = "testuser"
19+
access_level = "developer"
20+
ldap_provider = "ldapmain"
21+
}
22+
```
23+
24+
## Argument Reference
25+
26+
The following arguments are supported:
27+
28+
* `group_id` - (Required) The id of the GitLab group.
29+
30+
* `cn` - (Required) The CN of the LDAP group to link with.
31+
32+
* `access_level` - (Required) Acceptable values are: guest, reporter, developer, maintainer, owner.
33+
34+
* `ldap_provider` - (Required) The name of the LDAP provider as stored in the GitLab database.
35+
36+
## Import
37+
38+
GitLab group ldap links can be imported using an id made up of `ldap_provider:cn`, e.g.
39+
40+
```
41+
$ terraform import gitlab_group_ldap_link.test "ldapmain:testuser"
42+
```

0 commit comments

Comments
 (0)