Use this data source to get information about an organization membership.
data "tfe_organization_membership" "test" {
organization = "my-org-name"
email = "user@company.com"
}
data "tfe_organization_membership" "test" {
organization = "my-org-name"
username = "my-username"
}
data "tfe_organization_membership" "test" {
organization = "my-org-name"
organization_membership_id = "ou-xxxxxxxxxxx"
}
The following arguments are supported:
organization
- (Optional) Name of the organization.email
- (Optional) Email of the user.username
- (Optional) The username of the user.organization_membership_id
- (Optional) ID belonging to the organziation membership.In addition to all arguments above, the following attributes are exported:
id
- The organization membership ID.user_id
- The ID of the user associated with the organization membership.username
- The username of the user associated with the organization membership.