From 6e3c66658feebcc7ea0c6fdb085e65ce456e7f74 Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Mon, 30 Sep 2024 19:33:17 +0200 Subject: [PATCH] fix(admin-manual): adjust status codes for provision api user controller Signed-off-by: Hamza Mahjoubi --- .../instruction_set_for_users.rst | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/admin_manual/configuration_user/instruction_set_for_users.rst b/admin_manual/configuration_user/instruction_set_for_users.rst index 5ffff98e0a3..183e7b37237 100644 --- a/admin_manual/configuration_user/instruction_set_for_users.rst +++ b/admin_manual/configuration_user/instruction_set_for_users.rst @@ -22,16 +22,17 @@ basic HTTP authentication header. Status codes: -* 100 - successful -* 101 - invalid input data -* 102 - username already exists -* 103 - unknown error occurred whilst adding the user +* 101 - invalid argument +* 102 - user already exists +* 103 - cannot create sub-admins for admin group * 104 - group does not exist * 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 +* 106 - no group specified (required for sub-admins) +* 107 - hint exceptions +* 108 - an email address is required, to send a password link to the user. +* 109 - sub-admin group does not exist +* 110 - required email address was not provided +* 111 - could not create non-existing user ID Example ^^^^^^^ @@ -180,9 +181,10 @@ is done by sending a Basic HTTP Authorization header. Status codes: -* 100 - successful -* 101 - user not found -* 102 - invalid input data +* 101 - invalid argument +* 107 - password policy (hint exception) +* 112 - Setting the password is not supported by the users backend +* 113 - editing field not allowed / field doesn’t exist Examples ^^^^^^^^