def get_all_favorite_fields(conn, user_id) ->list:
    """
    Queries all available favorites for the specified user on Tableau Server.
    :param class conn: the Tableau Server connection
    :param str user_id: the Tableau Server user whose favorites will be queried
    :return: list
    """
    try:
        all_favorites = conn.get_favorites_for_user(user_id).json()['favorites'
            ]['favorite']
    except KeyError:
        all_favorites = {}
    return all_favorites
