From d201dc2c937c03c40701c7bdf5b6146e6d7edba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 19 Aug 2021 16:22:20 +0200 Subject: Add active user count to occ user:report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/Command/User/Report.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/Command/User/Report.php b/core/Command/User/Report.php index 9df828ca7da..149abc006f9 100644 --- a/core/Command/User/Report.php +++ b/core/Command/User/Report.php @@ -90,6 +90,9 @@ class Report extends Command { $rows[] = ['user directories', $userDirectoryCount]; } + $activeUsers = $this->userManager->countSeenUsers(); + $rows[] = ['active users', $activeUsers]; + $disabledUsers = $this->config->getUsersForUserValue('core', 'enabled', 'false'); $disabledUsersCount = count($disabledUsers); $rows[] = ['disabled users', $disabledUsersCount]; -- cgit v1.2.3