(STATUS HSNAME) on EE seems to return (STATUS UDIR) and not (STATUS USERID). This is a long-standing bug which has probably been reported before. It deserves to be fixed since it's probably trivial and would be very useful to a lot of people if it worked right.