fixes n+1 query when assigning user types to users in user repo