def rule(event):
    if all(
        [
            event.deep_get("properties", "message", default="") == "Invite external user",
            event.deep_get("Status", default="") == "failure",
        ]
    ):
        return True
    return False
