Use this data source to get information about members of an organization.
resource "tfe_organization" "bar" {
name = "org-bar"
email = "user@hashicorp.com"
}
data "tfe_organization_members" "foo" {
organization = tfe_organization.bar.name
}
The following arguments are supported:
organization
- (Required) Name of the organization.In addition to all arguments above, the following attributes are exported:
id
- Name of the organization.members
- A list of active members of the organization.members_waiting
- A list of members with pending invite to organization.The member
block contains:
user_id
- The ID of the user.organization_membership_id
- The ID of the organization membership.