diff options
author | Daniel Fernau <gitlab@danielfernau.com> | 2018-07-16 12:49:46 +0000 |
---|---|---|
committer | Daniel Fernau <gitlab@danielfernau.com> | 2018-07-16 12:49:46 +0000 |
commit | ab659da6d40a46d3b422105c836567bce03c45a5 (patch) | |
tree | 38d5d9926d92a7283de6b6695c7ae4ff8d19dde4 /doc | |
parent | fabf6a5634fa5d3c585d01a0d0dfac6c39dcbe8e (diff) | |
download | gitlab-ce-ab659da6d40a46d3b422105c836567bce03c45a5.tar.gz |
Update doc/api/users.md
Move "search by email or username" block to "for normal users" section
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/users.md | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index ca5afa04687..72fdaaa2c74 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -33,6 +33,20 @@ GET /users ] ``` +You can also search for users by email or username with: `/users?search=John` + +In addition, you can lookup users by username: + +``` +GET /users?username=:username +``` + +For example: + +``` +GET /users?username=jack_smith +``` + In addition, you can filter users based on states eg. `blocked`, `active` This works only to filter users who are `blocked` or `active`. It does not support `active=false` or `blocked=false`. @@ -126,21 +140,7 @@ GET /users ] ``` -You can search for users by email or username with: `/users?search=John` - -In addition, you can lookup users by username: - -``` -GET /users?username=:username -``` - -For example: - -``` -GET /users?username=jack_smith -``` - -You can also lookup users by external UID and provider: +You can lookup users by external UID and provider: ``` GET /users?extern_uid=:extern_uid&provider=:provider |