support querying the global user api by username

http://manage.dimagi.com/default.asp?146609