expires_at on gitlab_project_membership

Created by: bbr32

Feature Description

Hi,

It would be nice to add "expires_at" field on gitlab_project_membership resource, like so :

resource "gitlab_project_membership" "example" {
  project_id   = "67890"
  user_id      = 1234
  access_level = "guest"
  expires_at   = "2099-01-01" # Set expiration date for project user membership
}

This field is already present on the Gitlab API resource to add a member to project. And has already been implemented in the provider with the group_share_group resource, should be quick to implement.

Do you want to implement this?

  • I would like to implement this myself 👷
Edited by Timo Furrer