def rule(event):
    if all(
        [
            event.deep_get("Category", default="") == "UserManagement",
            event.deep_get("OperationName", default="") == "Invite external user",
            not "<approved guest inviter use OR for multiple>"
            in event.deep_get("InitiatedBy", default=""),
        ]
    ):
        return True
    return False
