Commit 780c94d7 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'patch-113' into 'master'

Define Active users

See merge request gitlab-org/gitlab!32617
parents 637b1c3c c68d00e6
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
## List users ## List users
Active users = Total accounts - Blocked users
Get a list of users. Get a list of users.
This function takes pagination parameters `page` and `per_page` to restrict the list of users. This function takes pagination parameters `page` and `per_page` to restrict the list of users.
...@@ -49,9 +47,9 @@ For example: ...@@ -49,9 +47,9 @@ For example:
GET /users?username=jack_smith GET /users?username=jack_smith
``` ```
In addition, you can filter users based on states eg. `blocked`, `active` In addition, you can filter users based on the states `blocked` and `active`.
This works only to filter users who are `blocked` or `active`. It does not support `active=false` or `blocked=false`. The list of active users
It does not support `active=false` or `blocked=false`. is the total number of users minus the blocked users.
```plaintext ```plaintext
GET /users?active=true GET /users?active=true
......
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