gitlab_project_protected_environment resource does not adding multiple allowed users, roles, or groups

GitLab Provider version

3.13.0

GitLab version

gitlab.com

Terraform version

1.1.7

Relevant Terraform Configuration

resource "gitlab_project_protected_environment" "staging" {
  project     = gitlab_project.this.id
  environment = "staging"
  deploy_access_levels {
    access_level = "maintainer"
    group_id = my_group_id
  }
}

Relevant log output

It shows the bellow diff every time and never actually applies.

-/+ resource "gitlab_project_protected_environment" "staging" {
      ~ id          = "29419209:staging" -> (known after apply)
        # (2 unchanged attributes hidden)

      ~ deploy_access_levels {
          ~ access_level_description = "Maintainers" -> (known after apply)
          - group_id                 = 0 -> null
          ~ group_id                  = 0 -> xxxxxx # forces replacement
            # (1 unchanged attribute hidden)
        }
    }

Description

The resource only allows adding a single role to the protected environment permissions. I need to be able to add the maintainers role, multiple individual users, and groups. It probably makes sense to either allow multiple deploy_access_levels blocks or to accept lists for access_level, group_id, and user_id.

Edited by Timo Furrer