Search display name and uid

@icewind1991 @MTGap This should solve the problem with the sharing dialog if users don't have a display name yet.