Use `UserManager.get_by_username()` or `UserManager.get()` depending on the argument type (str or int).