Replacing IRC /ban and /unban with API

Then in that scenario yes you would need to do a username to userID lookup first via get users yeah.

If a uservoice was created asking for a username query param I doubt that would be accepted or processed since that would be twitch doing the lookup instead of you doing the lookup, since the functionality already exists.