def METHOD_NAME(sa_endpoint, headers):
    """
    Iterate the list of service accounts registered for a Grafana host,
    identified by its service account endpoint (`sa_endpoint`), and
    retrieve the id of the service account which has the name "deployer".
    Assumes:
        the maximum number of service accounts created for a grafana is no more than 10.
    Returns:
        id: the id of the service account with the name `deployer` or
            `None` if no service account with this name was found
    """
    # Assumes we don't have more than 10 service accounts created for a Grafana
    # FIXME if this changes
    max_sa = 10
    sa_first_page_endpoint = f"{sa_endpoint}/search?perpage={max_sa}&page=1"
    response = requests.get(sa_first_page_endpoint, headers=headers)
    if not response.ok:
        print(
            f"An error occurred when retrieving the service accounts from {sa_first_page_endpoint}.\n"
            f"Error was {response.text}."
        )
        response.raise_for_status()
    service_account_no = response.json()["totalCount"]
    if service_account_no == 0:
        return
    service_accounts = response.json()["serviceAccounts"]
    return next((sa["id"] for sa in service_accounts if sa["name"] == "deployer"), None)