From 34b508d2669acbc689487703e81bcfa1f381ac47 Mon Sep 17 00:00:00 2001 From: atm-adrien <67913809+atm-adrien@users.noreply.github.com> Date: Tue, 9 Jun 2026 01:06:30 +0200 Subject: [PATCH] FIX : Clean datas on infoGroups api call (#38643) --- htdocs/user/class/api_users.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/user/class/api_users.class.php b/htdocs/user/class/api_users.class.php index b5622c41b7b..e40b4c363c3 100644 --- a/htdocs/user/class/api_users.class.php +++ b/htdocs/user/class/api_users.class.php @@ -618,6 +618,12 @@ class Users extends DolibarrApi throw new RestException(404, 'Group not found'); } + if ($load_members > 0 && is_array($group_static->members) && count($group_static->members) > 0) { + foreach ($group_static->members as &$member) { + $member = $this->_cleanObjectDatas($member); + } + } + return $this->_cleanObjectDatas($group_static); }