diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-16 12:32:56 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-24 17:52:15 +0200 |
commit | 10c135ca3414544a92febbc45b39d358c8383757 (patch) | |
tree | 17137dc89af559ed083dd36824ba78803a8e58d1 /apps/provisioning_api/lib | |
parent | 6689a3e37b5bc71a66462c547072ad7555958c05 (diff) | |
download | nextcloud-server-10c135ca3414544a92febbc45b39d358c8383757.tar.gz nextcloud-server-10c135ca3414544a92febbc45b39d358c8383757.zip |
Added disabled count per groups
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/GroupsController.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/GroupsController.php b/apps/provisioning_api/lib/Controller/GroupsController.php index c2958bc4778..9d64bb2251a 100644 --- a/apps/provisioning_api/lib/Controller/GroupsController.php +++ b/apps/provisioning_api/lib/Controller/GroupsController.php @@ -111,7 +111,12 @@ class GroupsController extends AUserData { $groups = $this->groupManager->search($search, $limit, $offset); $groups = array_map(function($group) { /** @var IGroup $group */ - return ['id' => $group->getGID(), 'displayname' => $group->getDisplayName()]; + return [ + 'id' => $group->getGID(), + 'displayname' => $group->getDisplayName(), + 'usercount' => $group->count(), + 'disabled' => $group->countDisabled() + ]; }, $groups); return new DataResponse(['groups' => $groups]); |