fixes
Build And Push Image / docker (push) Successful in 3m42s Details

This commit is contained in:
Matt 2025-08-13 21:48:05 +02:00
parent 34fdf820fe
commit b4e72ddf9a
1 changed files with 3 additions and 2 deletions

View File

@ -495,10 +495,11 @@ export class KeycloakAdminClient {
// Assign appropriate group instead of role
const groupName = userData.membershipTier || 'user';
console.log(`[keycloak-admin] Assigning user to group: ${groupName}`);
const groupPath = `/${groupName}`; // Keycloak groups use paths with leading slash
console.log(`[keycloak-admin] Assigning user to group: ${groupName} (path: ${groupPath})`);
try {
const groupId = await this.getGroupByPath(groupName);
const groupId = await this.getGroupByPath(groupPath);
await this.assignUserToGroup(userId, groupId);
console.log(`[keycloak-admin] ✅ Successfully assigned user ${userId} to group: ${groupName}`);
} catch (error: any) {