From c5ff2be424c40f98e96d80c1aa50bfc595e9208a Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 23 May 2023 10:49:44 +0200 Subject: [PATCH] Webservice: Add username to get_users' response - refs BT#20460 --- main/inc/lib/webservices/Rest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/inc/lib/webservices/Rest.php b/main/inc/lib/webservices/Rest.php index d4d4031a2d..3621c89319 100644 --- a/main/inc/lib/webservices/Rest.php +++ b/main/inc/lib/webservices/Rest.php @@ -1579,6 +1579,8 @@ class Rest extends WebService } /** + * Returns an array of users with id, firstname, lastname, email and username + * @param array $params An array of parameters to filter the results (currently only supports 'status' and 'id_campus') * @throws Exception */ public function getUsersCampus(array $params): array @@ -1597,6 +1599,7 @@ class Rest extends WebService 'firstname' => $item['firstname'], 'lastname' => $item['lastname'], 'email' => $item['email'], + 'username' => $item['username'], ]; $list[] = $listTemp; }