def get_user(rmine, username):
    """Get the user ID from the provided user name"""

    users = rmine.users.query_to_list(name=username)
    if not users:
        raise RuntimeError('Unknown user %s' % username)
    return users[0].id