Added 'getuser' and 'getuserid'. Fixes #2180