Skip to content

Commit 731d159

Browse files
Merge pull request #12249 from nextcloud/admin-manua/user-configuration-status-codes
fix:[admin-manual] adjust status codes for provision api user controller
2 parents b994308 + 8a652e3 commit 731d159

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

admin_manual/configuration_user/instruction_set_for_users.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ basic HTTP authentication header.
2222

2323
Status codes:
2424

25-
* 100 - successful
26-
* 101 - invalid input data
27-
* 102 - username already exists
28-
* 103 - unknown error occurred whilst adding the user
25+
* 101 - invalid argument
26+
* 102 - user already exists
27+
* 103 - cannot create sub-admins for admin group
2928
* 104 - group does not exist
3029
* 105 - insufficient privileges for group
31-
* 106 - no group specified (required for subadmins)
32-
* 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)
33-
* 108 - password and email empty. Must set password or an email
34-
* 109 - invitation email cannot be send
30+
* 106 - no group specified (required for sub-admins)
31+
* 107 - hint exceptions
32+
* 108 - an email address is required, to send a password link to the user.
33+
* 109 - sub-admin group does not exist
34+
* 110 - required email address was not provided
35+
* 111 - could not create non-existing user ID
3536

3637
Example
3738
^^^^^^^
@@ -180,9 +181,10 @@ is done by sending a Basic HTTP Authorization header.
180181

181182
Status codes:
182183

183-
* 100 - successful
184-
* 101 - user not found
185-
* 102 - invalid input data
184+
* 101 - invalid argument
185+
* 107 - password policy (hint exception)
186+
* 112 - Setting the password is not supported by the users backend
187+
* 113 - editing field not allowed / field doesn’t exist
186188

187189
Examples
188190
^^^^^^^^

0 commit comments

Comments
 (0)