gitlab_project_membership (Data Source)

The gitlab_project_membership data source allows to list and filter all members of a project specified by either its id or full path.

Upstream API: GitLab REST API docs

Example Usage

# By project's ID
data "gitlab_project_membership" "example" {
  project_id = 123
}

# By project's full path
data "gitlab_project_membership" "example" {
  full_path = "foo/bar"
}

# Get members of a project including all members
# through ancestor groups
data "gitlab_project_membership" "example" {
  project_id = 123
  inherited  = true
}

Schema

Optional

Read-Only

Nested Schema for members

Read-Only: