From d666723cb079cb8f9f1fab36110aea63afbde710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= <skjnldsv@protonmail.com> Date: Fri, 15 Jun 2018 16:42:39 +0200 Subject: [PATCH] Return groups IDs and not Names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> --- apps/provisioning_api/lib/Controller/AUserData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php index 348eea7c19b..2e29cc1df12 100644 --- a/apps/provisioning_api/lib/Controller/AUserData.php +++ b/apps/provisioning_api/lib/Controller/AUserData.php @@ -105,7 +105,7 @@ abstract class AUserData extends OCSController { $groups = $this->groupManager->getUserGroups($targetUserObject); $gids = []; foreach ($groups as $group) { - $gids[] = $group->getDisplayName(); + $gids[] = $group->getGID(); } // Find the data -- GitLab