List of projects in which your are a member using Gitlab Api

Hi,

I would like to find REST API to retrieve list of projects where I am a member. But couldn’t find REST API for that. Please help me out.

There are two APIs that could be of use here, depending on the kind of membership involved.

Checkout:

  • Projects API | GitLab (List user projects) and,

    • Get a list of projects owned by the given user. (See also the membership and other optional params)

  • Users API | GitLab (List user memberships)

    • Lists all projects and groups a user is a member of. This endpoint is available for admins only (i.e. only runs on on Self-Managed instances).

1 Like

Please correct me if I am wrong if I follow the above API, in the first link I can get a list of projects/repos I do have and in the second link, I will get a list of all the members of project1.

can someone help me with API lets say have user1 if I run a query it will return output like user1 is a member of the below project and if in advance he is a member of that project as developer/maintainer/owner.