Commit 73bdca2e authored by Jacopo's avatar Jacopo

Docs for Project/Groups members API with inherited members

Expains the differences between `api/projects/:id/members` and
`api/projects/:id/members/all` related to inherited members.
parent ba66e0cc
---
title: Docs for Project/Groups members API with inherited members
merge_request: 21984
author: Jacopo Beschi @jacopo-beschi
type: added
......@@ -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
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
......@@ -61,6 +62,7 @@ Example response:
## 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.
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment