From 419eb06408d0be79760194374f321f6d7ec27d36 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 11 Jan 2024 10:55:53 -0500 Subject: [PATCH] Fix listUsers to actually return as much information as is stored --- SilMock/Google/Service/Directory/UsersResource.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SilMock/Google/Service/Directory/UsersResource.php b/SilMock/Google/Service/Directory/UsersResource.php index 95d78fa..a19b425 100644 --- a/SilMock/Google/Service/Directory/UsersResource.php +++ b/SilMock/Google/Service/Directory/UsersResource.php @@ -341,11 +341,9 @@ public function listUsers($parameters = []) $userEntry['name']['givenName'] . ' ' . $userEntry['name']['familyName'], 'givenName' => $userEntry['name']['givenName'], ]); + $userEntry['customerId'] = $userEntry['primaryEmail']; /** @var \Google_Service_Directory_User $newEntry */ - $newEntry = new \Google_Service_Directory_User(array( - 'primaryEmail' => $userEntry['primaryEmail'], - 'customerId' => $userEntry['primaryEmail'], - )); + $newEntry = new \Google_Service_Directory_User($userEntry); $newEntry->setName($newName); $allResultsUsers = $results->getUsers();