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: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
## Unreleased
2
2
3
3
FEATURES:
4
+
*`d/tfe_organization_membership`: Add `organization_membership_id` attribute, by @laurenolivia[997](https://github.com/hashicorp/terraform-provider-tfe/pull/997)
4
5
*`d/tfe_variable_set`: Add `project_ids` attribute, by @Netra2104[994](https://github.com/hashicorp/terraform-provider-tfe/pull/994)
5
6
***New Data Source**: `d/tfe_teams` is a new data source to return names and IDs of Teams in an Organization, by @isaacmcollins[992](https://github.com/hashicorp/terraform-provider-tfe/pull/992)
Copy file name to clipboardExpand all lines: website/docs/d/organization_membership.html.markdown
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,32 @@ data "tfe_organization_membership" "test" {
28
28
29
29
### Fetch by username
30
30
31
-
```
31
+
```hcl
32
32
data "tfe_organization_membership" "test" {
33
33
organization = "my-org-name"
34
34
username = "my-username"
35
35
}
36
36
```
37
37
38
+
### Fetch by organization membership ID
39
+
40
+
```hcl
41
+
data "tfe_organization_membership" "test" {
42
+
organization = "my-org-name"
43
+
organization_membership_id = "ou-xxxxxxxxxxx"
44
+
}
45
+
```
46
+
38
47
## Argument Reference
39
48
40
49
The following arguments are supported:
41
50
42
-
*`organization` - (Required) Name of the organization.
51
+
*`organization` - (Optional) Name of the organization.
43
52
*`email` - (Optional) Email of the user.
44
53
*`username` - (Optional) The username of the user.
54
+
*`organization_membership_id` - (Optional) ID belonging to the organziation membership.
45
55
46
-
~> **NOTE:** While `email` and `username` are optional arguments, one or the other is required.
56
+
~> **NOTE:** While `email` and `username` are optional arguments, one or the other is required if `organization_membership_id` argument is not provided.
0 commit comments