From 2505de73bf5546bf8bd82b867ff805a1d3ee5cd4 Mon Sep 17 00:00:00 2001 From: Corentin Mercier <46066895+MercierCorentin@users.noreply.github.com> Date: Fri, 12 Apr 2019 19:29:36 +0200 Subject: [PATCH 1/2] Add options for add a new user Changements based on https://github.com/nextcloud/server/blob/090aa512341d0b86bf4d90474f3ec9064e5a0717/apps/provisioning_api/lib/Controller/UsersController.php#L214 Signed-off-by: MercierCorentin --- .../configuration_user/instruction_set_for_users.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_user/instruction_set_for_users.rst b/admin_manual/configuration_user/instruction_set_for_users.rst index b9b5adb0b..48c53b146 100644 --- a/admin_manual/configuration_user/instruction_set_for_users.rst +++ b/admin_manual/configuration_user/instruction_set_for_users.rst @@ -12,7 +12,13 @@ basic HTTP authentication header. * HTTP method: POST * POST argument: userid - string, the required username for the new user -* POST argument: password - string, the required password for the new user +* POST argument: password - string, the password for the new user, leave empty to send welcome mail +* POST argument: displayName - string, the display name for the new user +* POST argument: email - string, the email for the nex user, required if password empty +* POST argulent: groups - array, the groups for the new user +* POST argument: subadmin - array, the groups in wich the new user is subadmin +* POST argument: quota - string, quota for the new user +* POST argument: language - string, language for the new user Status codes: From 96ca2d6bf21214423e11241047f4ca2c9a5ec3dd Mon Sep 17 00:00:00 2001 From: Corentin Mercier <46066895+MercierCorentin@users.noreply.github.com> Date: Fri, 12 Apr 2019 19:33:54 +0200 Subject: [PATCH 2/2] Update user api status codes Based on https://github.com/nextcloud/server/blob/090aa512341d0b86bf4d90474f3ec9064e5a0717/apps/provisioning_api/lib/Controller/UsersController.php#L214 Signed-off-by: MercierCorentin --- admin_manual/configuration_user/instruction_set_for_users.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin_manual/configuration_user/instruction_set_for_users.rst b/admin_manual/configuration_user/instruction_set_for_users.rst index 48c53b146..912c13229 100644 --- a/admin_manual/configuration_user/instruction_set_for_users.rst +++ b/admin_manual/configuration_user/instruction_set_for_users.rst @@ -30,6 +30,8 @@ Status codes: * 105 - insufficient privileges for group * 106 - no group specified (required for subadmins) * 107 - all errors that contain a hint - for example "Password is among the 1,000,000 most common ones. Please make it unique." (this code was added in 12.0.6 & 13.0.1) +* 108 - password and email empty. Must set password or an email +* 109 - invitation email cannot be send Example ^^^^^^^