def rule(event):
    if all(
        [
            event.deep_get("Operation", default="") == "Add member to role.",
            event.deep_get("Workload", default="") == "AzureActiveDirectory",
            any(
                [
                    event.deep_get("ModifiedProperties{}", "NewValue", default="").endswith(
                        "Admins"
                    ),
                    event.deep_get("ModifiedProperties{}", "NewValue", default="").endswith(
                        "Administrator"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
