hashicorp/terraform-provider-googleworkspace

[feature request] Support group membership expiration

Opened this issue · 0 comments

As group membership expiration is available, it would be great to support the feature in the terraform provider as well.

Terraform Version

any version

Affected Resource(s)

Terraform Configuration Files

We can add an optional argument as expiration_time to set the expirationTime parameter of the APIs.

googleworkspace_group_member

resource "googleworkspace_group_member" "manager" {
  group_id = googleworkspace_group.sales.id
  email    = googleworkspace_user.michael.primary_email

  role = "MEMBER"
  expiation_time = "2024-01-01T00:00:00Z"
}

resource "googleworkspace_group_members" "sales" {
  group_id = googleworkspace_group.sales.id

  members {
    email = googleworkspace_user.michael.primary_email
    role  = "MANAGER"
  }

  members {
    email = googleworkspace_user.frank.primary_email
    role  = "MEMBER"
    expiration_time  = "2024-01-01T00:00:00Z"
  }
}

Expected Behavior

We can set the group membership expiration with an option.

Actual Behavior

We don't have the feature yet.

References