Skip to content

tfe_organization_members: add email address field#2146

Open
kaefferlein wants to merge 3 commits into
hashicorp:mainfrom
kaefferlein:add-org-member-email
Open

tfe_organization_members: add email address field#2146
kaefferlein wants to merge 3 commits into
hashicorp:mainfrom
kaefferlein:add-org-member-email

Conversation

@kaefferlein

@kaefferlein kaefferlein commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

addresses #1998

The data source tfe_organization_members now includes the email address of a user.

The official API doesn't document the email address in the API response. However, it is actually included. I confirmed this with a local curl, and it's written in the go-tfe client as well.

Previous output of a member

{
  organization_membership_id = "ou-1234"
  user_id                    = "user-someid"
}

New output:

{
  organization_membership_id = "ou-1234"
  user_email                 = "someone@tfe.com"
  user_id                    = "user-someid"
}

Testing plan

No specific testing plan, I did test it manually against a playground TFE setup:

  1. Create a main.tf with the following content:
provider "tfe" {
  hostname = "my-org"
  token        = "my-token"
}

data "tfe_organization_members" "my_org" {
  organization = "my_org"
}

output "members" {
  value = data.tfe_organization_members.my_org.members
}

  1. Run a terraform plan to check the outputs.
  2. Check the user_email field is present.

Changes

The tfe_organization_members data source now contains the user_email for members / members_waiting.

@kaefferlein
kaefferlein requested a review from a team as a code owner July 17, 2026 08:33
@kaefferlein kaefferlein reopened this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant