ECMS-5076 change the way to get remote user to avoid error message on console