From f33eb932489c3b9eaf6c5223ccbbb458f46bf4fd Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Fri, 29 Apr 2022 18:02:39 +0200 Subject: [PATCH] Makes emails an array. --- lib/Controller/ASCIMUser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Controller/ASCIMUser.php b/lib/Controller/ASCIMUser.php index a0f5421..e592731 100644 --- a/lib/Controller/ASCIMUser.php +++ b/lib/Controller/ASCIMUser.php @@ -100,8 +100,10 @@ abstract class ASCIMUser extends ApiController { 'userName' => $userId, 'displayName' => $targetUserObject->getDisplayName(), 'emails' => [ + [ 'primary' => true, 'value' => $targetUserObject->getSystemEMailAddress() + ] ], //'groups' => [], 'active' => (bool) $this->config->getUserValue($userId, 'core', 'enabled', 'true') === 'true'