Makes emails an array.

This commit is contained in:
Pierre Ozoux 2022-04-29 18:02:39 +02:00
parent 2d5760160a
commit f33eb93248

View file

@ -100,8 +100,10 @@ abstract class ASCIMUser extends ApiController {
'userName' => $userId, 'userName' => $userId,
'displayName' => $targetUserObject->getDisplayName(), 'displayName' => $targetUserObject->getDisplayName(),
'emails' => [ 'emails' => [
[
'primary' => true, 'primary' => true,
'value' => $targetUserObject->getSystemEMailAddress() 'value' => $targetUserObject->getSystemEMailAddress()
]
], ],
//'groups' => [], //'groups' => [],
'active' => (bool) $this->config->getUserValue($userId, 'core', 'enabled', 'true') === 'true' 'active' => (bool) $this->config->getUserValue($userId, 'core', 'enabled', 'true') === 'true'