import requests


def get_user_list(base_url, admin_token):
    """As an admin, get a list of all users on the Saturn Cloud account"""
    headers = {"Authorization": f"token {admin_token}"}
    result = requests.get(f"{base_url}api/users", headers=headers)
    list_of_users = result.json()["users"]
    return list_of_users