python-gitlab / python-gitlab

A python wrapper for the GitLab API.

Home Page:https://python-gitlab.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: List all projects of current user returns empty list

Malaber opened this issue · comments

Description of the problem, including code/CLI snippet

I want to call gitlab_client.projects.list(membership=True, all=True) and have all projects returned that the current user is a member of.

Expected Behavior

Returns a list of projects the user is a member of.
Can be filtered via the gitlab API using the membership parameter.
https://docs.gitlab.com/ee/api/projects.html#list-all-projects

Actual Behavior

Returns an empty list

Specifications

  • python-gitlab version: 4.4.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): GitLab Enterprise Edition v16.9.2-ee