#6160 fixed obtaining user name and SID