You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/user.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# gitlab\_user
2
2
3
-
Provides details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.
3
+
Provide details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.
4
4
5
5
## Example Usage
6
6
@@ -10,6 +10,15 @@ data "gitlab_user" "example" {
10
10
}
11
11
```
12
12
13
+
### Example using `for_each`
14
+
```hcl
15
+
data "gitlab_user" "example-two" {
16
+
for_each = toset(["user1", "user2", "user3"])
17
+
18
+
username = each.value
19
+
}
20
+
```
21
+
13
22
## Argument Reference
14
23
15
24
The following arguments are supported:
@@ -20,7 +29,7 @@ The following arguments are supported:
20
29
21
30
*`user_id` - (Optional) The ID of the user.
22
31
23
-
**Note**: only one of email, user_id or username must be provided.
32
+
> **Note**: only one of email, user_id or username must be provided.
24
33
25
34
## Attributes Reference
26
35
@@ -52,7 +61,7 @@ The following arguments are supported:
52
61
53
62
*`organization` - The organization of the user.
54
63
55
-
*`two_factor_enabled` - Whether user's twofactor auth is enabled.
64
+
*`two_factor_enabled` - Whether user's two-factor auth is enabled.
56
65
57
66
*`avatar_url` - The avatar URL of the user.
58
67
@@ -62,7 +71,7 @@ The following arguments are supported:
62
71
63
72
*`skype` - Skype username of the user.
64
73
65
-
*`linkedin` - Linkedin profile of the user.
74
+
*`linkedin` - LinkedIn profile of the user.
66
75
67
76
*`twitter` - Twitter username of the user.
68
77
@@ -76,6 +85,5 @@ The following arguments are supported:
76
85
77
86
*`current_sign_in_at` - Current user's sign-in date.
78
87
79
-
**Note**: some attributes might not be returned depending on if you're an admin or not. Please refer to [doc][doc] for more details.
88
+
> **Note**: some attributes might not be returned depending on if you're an admin or not. Please refer to [Gitlab documentation](https://docs.gitlab.com/ce/api/users.html#single-user) for more details.
Copy file name to clipboardExpand all lines: docs/resources/branch_protection.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This resource allows you to protect a specific branch by an access level so that the user with less access level cannot Merge/Push to the branch.
4
4
5
-
-> The `allowed_to_push`, `allowed_to_merge` and `code_owner_approval_required` arguments require a GitLab Premium account or above.
5
+
-> **NOTE**: The `allowed_to_push`, `allowed_to_merge` and `code_owner_approval_required` arguments require a GitLab Premium account or above. Please refer to [Gitlab API documentation](https://docs.gitlab.com/ee/api/protected_branches.html) for further information.
Copy file name to clipboardExpand all lines: docs/resources/deploy_token.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# gitlab\_deploy\_token
2
2
3
-
This resource allows you to create and manage deploy token for your GitLab projects and groups.
3
+
This resource allows you to create and manage deploy token for your GitLab projects and groups. Please refer to [Gitlab documentation](https://docs.gitlab.com/ee/user/project/deploy_tokens/) for further information.
This resource allows you to create and manage multiple approval rules for your GitLab projects. For further information on approval rules, consult the [gitlab documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
For further information on merge request approvals, consult the [GitLab API documentation](https://docs.gitlab.com/ee/api/merge_request_approvals.html#project-level-mr-approvals).
6
5
7
6
## Example Usage
8
7
@@ -39,10 +38,10 @@ also need to be included in the approvers list in order to be able to approve th
39
38
40
39
## Import
41
40
42
-
You can import an approval configuration state using `terraform import <resource> <project_id>`.
41
+
You can import an approval configuration state using `terraform import <resource> <project_id>:<approval_rule_id>`.
0 commit comments