Skip to content

Commit 8cd2568

Browse files
authored
Merge pull request #840 from timofurrer/doc/user-email
datasource/gitlab_user(s): aligned email description with upstream API. Refs #839
2 parents 2891998 + 2f3511b commit 8cd2568

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/data-sources/user.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data "gitlab_user" "example-two" {
3333

3434
### Optional
3535

36-
- **email** (String) The email address of the user.
36+
- **email** (String) The public email address of the user. **Note**: before GitLab 14.8 the lookup was based on the users primary email address.
3737
- **id** (String) The ID of this resource.
3838
- **user_id** (Number) The ID of the user.
3939
- **username** (String) The username of the user.

gitlab/data_source_gitlab_user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func dataSourceGitlabUser() *schema.Resource {
3939
},
4040
},
4141
"email": {
42-
Description: "The email address of the user.",
42+
Description: "The public email address of the user. **Note**: before GitLab 14.8 the lookup was based on the users primary email address.",
4343
Type: schema.TypeString,
4444
Computed: true,
4545
Optional: true,

gitlab/data_source_gitlab_users.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func dataSourceGitlabUsers() *schema.Resource {
8888
Computed: true,
8989
},
9090
"email": {
91-
Description: "The e-mail address of the user.",
91+
Description: "The public email address of the user. **Note**: before GitLab 14.8 the lookup was based on the users primary email address.",
9292
Type: schema.TypeString,
9393
Computed: true,
9494
},

0 commit comments

Comments
 (0)