leftJoin fix to groups in the UserProvider

if the user has no groups, the join fails, instead use leftJoin