support querying the global user api by username
Merge pull request #4782 from dimagi/web-username-api

support querying the global user api by username