How to get repositories where user contributed Gitlab API

Hello everyone,

I am trying to get listed all user’s project repositories with the Gitlab API. However, after trying with different parameters, I cannot get all the repositories. I cannot find a way to retrieve the ones where the user has contributed, but he/she is not the owner or creator.

I have tried the following requests and their combinations:

  -  r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?owner=no&private_token=<PRIVATE_TOKEN>")

  - r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?private_token=<PRIVATE_TOKEN>")

  -  r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?membership=true&private_token=<PRIVATE_TOKEN>")

  - r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?custom_attributes[role]=Developer&private_token=<PRIVATE_TOKEN>")

  - r=requests.get("https://gitlab.com/api/v4/users/:userid/projects?membership=true&custom_attributes[role]=Developer&private_token=<PRIVATE_TOKEN>")

I will like to know if there is any parameter to get the repositories where the user has contributed by any comment, issue, or commit.

Thank you so much in advance,
Carmen.

I wanted to get the contributed projects as well, but couldn’t as you…

All I can find is this issue [API] User endpoint to get personal projects and contributed projects (#14873) · Issues · GitLab.org / GitLab · GitLab which looks what we need, but it wasn’t done the way it was asked…