Switch user.getUserId to user.getLocalUserId