diff --git a/src/server/middeware/user.ts b/src/server/middeware/user.ts index 097a7107..05dc9cb7 100644 --- a/src/server/middeware/user.ts +++ b/src/server/middeware/user.ts @@ -34,7 +34,7 @@ const userMiddleware = (req: any, _res: any, next: any) => { const iamGroups = parseIamGroups(hygroupcn) const user = { - id, + id: id || username, // Username if no account in Sisu username, firstName, lastName,