fix addGroupsForUser