Merge branch '51404-update-groups-and-projects-api-docs' into 'master'

Docs for Project/Groups members API with inherited members

Closes #51404

See merge request gitlab-org/gitlab-ce!21984
This commit is contained in:
Achilleas Pipinellis 2018-09-28 16:13:42 +00:00
commit 1ed5ab50c7
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
title: Docs for Project/Groups members API with inherited members
merge_request: 21984
author: Jacopo Beschi @jacopo-beschi
type: added

View file

@ -15,6 +15,7 @@ The access levels are defined in the `Gitlab::Access` module. Currently, these l
## List all members of a group or project ## List all members of a group or project
Gets a list of group or project members viewable by the authenticated user. Gets a list of group or project members viewable by the authenticated user.
Returns only direct members and not inherited members through ancestors groups.
``` ```
GET /groups/:id/members GET /groups/:id/members
@ -61,6 +62,7 @@ Example response:
## List all members of a group or project including inherited members ## List all members of a group or project including inherited members
Gets a list of group or project members viewable by the authenticated user, including inherited members through ancestor groups. Gets a list of group or project members viewable by the authenticated user, including inherited members through ancestor groups.
Returns multiple times the same user (with different member attributes) when the user is a member of the project/group and of one or more ancestor group.
``` ```
GET /groups/:id/members/all GET /groups/:id/members/all