» tfe_organization_membership

Add or remove a user from an organization.

» Example Usage

Basic usage:

resource "tfe_organization_membership" "test" {
  organization  = "my-org-name"
  email = "user@company.com"

» Argument Reference

The following arguments are supported:

  • organization - (Required) Name of the organization.
  • email - (Required) Email of the user to add.

» Attributes Reference

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.

Organization memberships can be imported; use <ORGANIZATION MEMBERSHIP ID> as the import ID. For example:

terraform import tfe_organization_membership.test ou-wAs3zYmWAhYK7peR