summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-08-19 16:22:20 +0200
committerJulius Härtl <jus@bitgrid.net>2021-08-19 16:22:20 +0200
commitd201dc2c937c03c40701c7bdf5b6146e6d7edba0 (patch)
treeb2d888682b107f9a691a7362c9eb87217c08d102 /core/Command
parent7ab39effd3d8d1ead9fac5bd475da024826b07c5 (diff)
downloadnextcloud-server-d201dc2c937c03c40701c7bdf5b6146e6d7edba0.tar.gz
nextcloud-server-d201dc2c937c03c40701c7bdf5b6146e6d7edba0.zip
Add active user count to occ user:report
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/User/Report.php3
1 files changed, 3 insertions, 0 deletions
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];