Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2019-01-29 21:10:37 +0300
committerJacopo <beschi.jacopo@gmail.com>2019-05-27 16:40:56 +0300
commita9827e0e18b532fb5cc3f227ce6c6bddaf7a960b (patch)
tree1cd3b68ccff5d664a2a31a3fed44626fa3ac23ad /doc/api/members.md
parentf9a2c4034f690e4ab9803522110c063d78da8f4d (diff)
Removes duplicated members from api/projects/:id/members/all
When using the members/all api the same user was returned multiple times when he was a member of the project/group and also of one of the ancestor groups. Now the member is returned only once giving priority to the membership on the project and maintaining the same behaviour of the members UI.
Diffstat (limited to 'doc/api/members.md')
-rw-r--r--doc/api/members.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/members.md b/doc/api/members.md
index 0593d2c20ea..8784d577f99 100644
--- a/doc/api/members.md
+++ b/doc/api/members.md
@@ -62,7 +62,9 @@ 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.
+When a user is a member of the project/group and of one or more ancestor groups the user is returned only once with the project access_level (if exists)
+or the access_level for the user in the first group which he belongs to in the project groups ancestors chain.
+**Note:** We plan to [change](https://gitlab.com/gitlab-org/gitlab-ce/issues/62284) this behavior to return highest access_level instead.
```
GET /groups/:id/members/all