summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoost Rijneveld <joost@joostrijneveld.nl>2017-02-03 15:49:27 +0100
committerJoost Rijneveld <joost@joostrijneveld.nl>2017-02-09 20:32:54 +0100
commit6fab6d94cef853ed0d081dcea0fbfe390047b1c8 (patch)
tree4aa62ba92455257e6b8ceeb8779044d9b25bb1d3 /doc
parent52ea505126da19717c9137e6bb301f55965eb6e4 (diff)
downloadgitlab-ce-6fab6d94cef853ed0d081dcea0fbfe390047b1c8.tar.gz
Optionally make users created via the API set their password
Diffstat (limited to 'doc')
-rw-r--r--doc/api/users.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index fea9bdf9639..ed3469521fc 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -216,7 +216,7 @@ Parameters:
## User creation
-Creates a new user. Note only administrators can create new users.
+Creates a new user. Note only administrators can create new users. Either `password` or `reset_password` should be specified (`reset_password` takes priority).
```
POST /users
@@ -225,7 +225,8 @@ POST /users
Parameters:
- `email` (required) - Email
-- `password` (required) - Password
+- `password` (optional) - Password
+- `reset_password` (optional) - Send user password reset link - true or false(default)
- `username` (required) - Username
- `name` (required) - Name
- `skype` (optional) - Skype ID