The gitlab_group_membership
data source allows to list and filter all members of a group specified by either its id or full path.
Upstream API: GitLab REST API docs
# By group's ID
data "gitlab_group_membership" "example" {
group_id = 123
}
# By group's full path
data "gitlab_group_membership" "example" {
full_path = "foo/bar"
}
access_level
(String) Only return members with the desired access level. Acceptable values are: guest
, reporter
, developer
, maintainer
, owner
.full_path
(String) The full path of the group.group_id
(Number) The ID of the group.inherited
(Boolean) Return all project members including members through ancestor groups.id
(String) The ID of this resource.members
(List of Object) The list of group members. (see below for nested schema)members
Read-Only:
access_level
(String)avatar_url
(String)expires_at
(String)id
(Number)name
(String)state
(String)username
(String)web_url
(String)