diff --git a/apps/meteor/app/authentication/server/startup/index.js b/apps/meteor/app/authentication/server/startup/index.js index e3b97c1aae88a..624368f1629ba 100644 --- a/apps/meteor/app/authentication/server/startup/index.js +++ b/apps/meteor/app/authentication/server/startup/index.js @@ -324,7 +324,7 @@ const insertUserDocAsync = async function (options, user) { await addUserRolesAsync(_id, roles); // Make user's roles to be present on callback - user = await Users.findOneById(_id, { projection: { username: 1, type: 1 } }); + user = await Users.findOneById(_id, { projection: { username: 1, type: 1, roles: 1 } }); if (user.username) { if (options.joinDefaultChannels !== false) {