Fix User.getRealname() exception, improve the display of shared users