summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-08-19 16:22:20 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-11-24 14:03:52 +0000
commita8306884180ac4b3e8021b0c5c172c31859ada51 (patch)
tree40735838b32923ba7c8d1f16d4c379c5975b9c2e /core
parent28f41da1864f1125a34ba519f1e4df38e7c3bf6d (diff)
downloadnextcloud-server-a8306884180ac4b3e8021b0c5c172c31859ada51.tar.gz
nextcloud-server-a8306884180ac4b3e8021b0c5c172c31859ada51.zip
Add active user count to occ user:report
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-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 b537884d9d6..1eda00628b4 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];