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:
Diffstat (limited to 'doc/api/users.md')
-rw-r--r--doc/api/users.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index f4aadfd33db..a605f776c9c 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -968,6 +968,33 @@ Example response:
Please refer to the [List of user projects](projects.md#list-user-projects).
+## List associations count for user
+
+Get a list of a specified user's count of projects, groups, issues and merge requests.
+
+Administrators can query any user, but non-administrators can only query themselves.
+
+```plaintext
+GET /users/:id/associations_count
+```
+
+Parameters:
+
+| Attribute | Type | Required | Description |
+|-----------|---------|----------|------------------|
+| `id` | integer | yes | ID of a user |
+
+Example response:
+
+```json
+{
+ "groups_count": 2,
+ "projects_count": 3,
+ "issues_count": 8,
+ "merge_requests_count": 5
+}
+```
+
## List SSH keys
Get a list of currently authenticated user's SSH keys.