Data Source: tfe_organization_membership

Use this data source to get information about an organization membership.

Example Usage

Fetch by email

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"
}

Fetch by organization membership ID

data "tfe_organization_membership" "test" {
  organization  = "my-org-name"
  organization_membership_id = "ou-xxxxxxxxxxx"
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to all arguments above, the following attributes are exported: