Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Support group membership expiration #462

Open
yu-iskw opened this issue Aug 4, 2023 · 0 comments
Open

[feature request] Support group membership expiration #462

yu-iskw opened this issue Aug 4, 2023 · 0 comments

Comments

@yu-iskw
Copy link

yu-iskw commented Aug 4, 2023

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

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

No branches or pull requests

1 participant