diff --git a/src/modules/users/CreateUserJob.cpp b/src/modules/users/CreateUserJob.cpp index 6ccd678cc..9a61c5d9e 100644 --- a/src/modules/users/CreateUserJob.cpp +++ b/src/modules/users/CreateUserJob.cpp @@ -196,7 +196,7 @@ CreateUserJob::exec() { groupsForThisUser << gs->value( "autologinGroup" ).toString(); } - ensureGroupsExistInTarget( m_defaultGroups, availableGroups ); + ensureGroupsExistInTarget( groupsForThisUser, availableGroups ); // If we're looking to reuse the contents of an existing /home. // This GS setting comes from the **partitioning** module.