diff --git a/Model/GrouperGroup.php b/Model/GrouperGroup.php index e90fb0b..1468b07 100644 --- a/Model/GrouperGroup.php +++ b/Model/GrouperGroup.php @@ -331,7 +331,7 @@ public function getOwnedGroups(string $userId, array $cfg): array * - the User(me) has a role of owner/admin * - the User(member User) is a member * - * @param string $userId + * @param string $managerId * @param string $memberId * @param array $cfg * @@ -358,7 +358,7 @@ public function getManagedUsers(string $managerId, string $memberId, array $cfg) try { // Groups the user is a member of - $membersGroup = $this->grouperAPI->getUserGroups($memberId, $memberId); + $membersGroup = $this->grouperAPI->getUserGroups($managerId, $memberId); } catch (Exception $e) { CakeLog::write('error', __METHOD__ . ': An error occurred'); throw $e;