Skip to content

Commit

Permalink
Update documentation with username argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasslash committed Oct 19, 2022
1 parent 0ef9042 commit d494034
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion website/docs/d/organization_membership.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,33 @@ be updated manually.

## Example Usage

### Fetch by email

```hcl
data "tfe_organization_membership" "test" {
organization = "my-org-name"
email = "user@company.com"
}
```

### Fetch by username

```
data "tfe_organization_membership" "test" {
organization = "my-org-name"
username = "my-username"
}
```

## Argument Reference

The following arguments are supported:

* `organization` - (Required) Name of the organization.
* `email` - (Required) Email of the user.
* `email` - (Optional) Email of the user.
* `username` - (Optional) The username of the user.

~> **NOTE:** While `email` and `username` are optional arguments, one or the other is required.

## Attributes Reference

Expand Down

0 comments on commit d494034

Please sign in to comment.