Managing the membership of the owners
team tries to remove hidden Hashicorp-owned members
#1438
Labels
owners
team tries to remove hidden Hashicorp-owned members
#1438
Terraform Enterprise version
Using HCP Terraform (Terraform Cloud)
Terraform version
Terraform Configuration Files
Debug Output
N/A
Expected Behavior
The team membership to import, and the plan to show no changes (since the members defined in the HCL above are already members of the team).
Actual Behavior
The team membership does successfully import and shows the 5 expected users, but it also shows Terraform's intent to remove 3 members that don't appear in the Terraform Cloud web UI for the team:
Upon investigating who these hidden users were, I discovered that they have
hashicorp.com
email addresses and appear to be "internal" users for Hashicorp's systems/etc. Those three to-be-removed member IDs resolve to:Since these users do not appear in the Terraform Cloud web UI, it probably makes sense to have this provider silently omit them from its search results when looking up members of the
owners
team. Otherwise, to avoid removing these users (or get an API error when trying), they will have to be added manually to thetfe_team_organization_members
resource (which is obviously fragile).Additional Context
The TFE provider is authenticated with a user token from a member of the
owners
team. Not sure if this affects this, but since nobody but theowners
team can modify theowners
team, it doesn't really matter.The text was updated successfully, but these errors were encountered: