I think you should post this as an Idea rather than a question.
The GetUser function behaves in the way that you're describing, where it defaults to the currently active Portal when none is specified. It would certainly be a useful feature, and I'd give it an upvote!
- Josh Carlson
Kendall County GIS