Skip to content

/projects API call does not return all accessible projects

According to http://docs.gitlab.com/ee/api/projects.html#list-projects a GET /projects call should:

Get a list of projects accessible by the authenticated user.

It however returns a list of all projects for which the authenticated user is a project or group member with sufficient permissions. In corporate situations where default project visibility is 'Internal' this leaves no way I can discover to return the true list of accessible projects, being all public and internal projects, and private projects for which the user has proper permission. The current situation acts as if the requester is 'external' acting only on explicit access.

Either the call has to be changed, or a /projects/accessible call added.