Add endpoint for getting disabled user list#39756
Conversation
|
There is a new CI workflow that checks that the OpenAPI specs are up-to-date. Please rebase onto master and regenerate the specs so that the workflow can do it's job. |
0833802 to
fa1f37c
Compare
303c153 to
4d63760
Compare
bc0fcbe to
93722e7
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
93722e7 to
61da2b9
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
nfebe
left a comment
There was a problem hiding this comment.
A default value for limit seems reasonable of if null, we should check for valid values different from zero... Such as negative numbers and 0
if ($limit !== null && $limit < 0) {
// Whatever exception
throw new InvalidArgumentException("Invalid limit value: $limit");
}
if ($offset < 0) {
throw new InvalidArgumentException("Invalid offset value: $offset");
}Generally, this is a little slim or error handling.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Nice input, I’ve added that to the controller method. |
Summary
Adds an endpoint to get the list of disabled users, with offset and limit.
This avoids fetching all the users when opening the disabled user list, fixing the disabled user list for LDAP backed installations which do not have a lot of disabled users. Also avoids spamming the LDAP server when opening disabled user list.
TODO
Checklist