summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-04-27 15:25:13 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-04-27 15:25:13 +0200
commit876c162df831f70a9b4ed886f35c47c9c22df5ea (patch)
treec86bf3167a34b49801975cc170ebc6571026c814 /core
parent346344c15371597ec825059abdf7564da9334b7e (diff)
downloadnextcloud-server-876c162df831f70a9b4ed886f35c47c9c22df5ea.tar.gz
nextcloud-server-876c162df831f70a9b4ed886f35c47c9c22df5ea.zip
Use the searchDisplayName recommended method in user:list
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/User/ListCommand.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php
index c254a8a11cf..bf4bf7f030e 100644
--- a/core/Command/User/ListCommand.php
+++ b/core/Command/User/ListCommand.php
@@ -74,7 +74,7 @@ class ListCommand extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- $users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
+ $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
return 0;