def rule(event):
    if all(
        [
            event.deep_get("Category", default="") == "RoleManagement",
            "Add" in event.deep_get("OperationName", default=""),
            "member to role" in event.deep_get("OperationName", default=""),
            any(
                [
                    "7698a772-787b-4ac8-901f-60d6b08affd2"
                    in event.deep_get("TargetResources", default=""),
                    "62e90394-69f5-4237-9190-012177145e10"
                    in event.deep_get("TargetResources", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
