Updated server get-user function.