gitlab_group_membership not returning inherited members

Bug Report

Should return a list of members, including members with inherited Max Role from parent groups. Only seems to list members if they are explicitly assigned to the group. Use case is being able to determine the users` current Max Role for the specified group ID.

Relevant Terraform Configuration

data "gitlab_group_membership" "this" {
 group_id = "0123456"
}

Relevant Log Output

Only returns members which have been explicitly assigned a role to the group.

Additional Details

  • GitLab Terraform Provider Version: 3.20.0
  • GitLab Version: gitlab.com
  • Terraform Version: 1.3.3

Implementation Guide

(added by @timofurrer): see suggestions in #1358 (comment 1211851906)

Edited by Timo Furrer