def rule(event):
    if all(
        [
            event.deep_get("eventService", default="") == "admin.googleapis.com",
            event.deep_get("eventName", default="")
            in ["GRANT_DELEGATED_ADMIN_PRIVILEGES", "GRANT_ADMIN_PRIVILEGE"],
        ]
    ):
        return True
    return False
