From 7d3e0fc659ab9c54c302baa5828a0e3ccac3f96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9batien=20Merveille?= Date: Mon, 16 Feb 2026 13:47:05 +0100 Subject: [PATCH] Fix OIDC group-to-role sync for groups containing spaces Normalize spaces to hyphens in parseRoleExternalAuthId() to match the same normalization applied to incoming group names in matchGroupsToSystemsRoles(), fixing group-to-role mapping for groups whose names contain spaces. --- app/Access/GroupSyncService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Access/GroupSyncService.php b/app/Access/GroupSyncService.php index 65e3e8fcd2c..e423d52ede4 100644 --- a/app/Access/GroupSyncService.php +++ b/app/Access/GroupSyncService.php @@ -43,7 +43,7 @@ protected function parseRoleExternalAuthId(string $externalId): array $cleanIds = []; foreach ($inputIds as $inputId) { - $cleanIds[] = str_replace('\,', ',', trim($inputId)); + $cleanIds[] = str_replace(' ', '-', str_replace('\,', ',', trim($inputId))); } return $cleanIds;