{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [
    "Microsoft",
    "microsoft-intune-v2",
    "use-case"
  ],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "SOC Use Cases - Microsoft Intune v2",
      "description": "Use cases for the Microsoft Intune connector (2.0.0, Microsoft Graph, application permissions): an inventory check that reports when no devices are enrolled, and a device lookup that requests a sync only when the device exists.",
      "visible": true,
      "image": null,
      "uuid": "01608904-683d-5202-8f18-3bf99b904d4f",
      "recordTags": [
        "microsoft-intune-v2",
        "Microsoft",
        "use-case"
      ],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "Intune - Inventory check",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "List the managed devices in Intune and route on the count: report that no devices are enrolled, or continue when devices are present.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/9e64fa1d-4b99-5369-93b3-e4f87258a593",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [],
                "title": "Intune - Inventory check",
                "resources": [
                  "alerts"
                ],
                "route": "274a1267-f5e0-51d2-b566-6a3bc19fce47",
                "step_variables": {
                  "input": {
                    "params": [],
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "alerts": {
                    "sort": [],
                    "limit": 30,
                    "logic": "AND",
                    "filters": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/f414d039-bb0d-4e59-9c39-a8f1e880b18a",
              "group": null,
              "uuid": "9e64fa1d-4b99-5369-93b3-e4f87258a593"
            },
            {
              "@type": "WorkflowStep",
              "name": "List Devices",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "list_managed_devices",
                "config": "",
                "params": {},
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Get Managed Devices List",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "94c35e64-285a-5d11-909a-aa20f623bdb7"
            },
            {
              "@type": "WorkflowStep",
              "name": "Route",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "no devices",
                    "condition": "{{ vars.steps.List_Devices.data.count == 0 }}",
                    "step_iri": "/api/3/workflow_steps/b6c07205-52ff-51b0-8b25-e84c8df755a8",
                    "step_name": "No Enrolled Devices"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/4b5397ac-e059-5bef-8468-a967fd7b5ce2",
                    "step_name": "Devices Present"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "0e2645cd-fd08-5475-8a29-396c181fc08d"
            },
            {
              "@type": "WorkflowStep",
              "name": "No Enrolled Devices",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "b6c07205-52ff-51b0-8b25-e84c8df755a8"
            },
            {
              "@type": "WorkflowStep",
              "name": "Devices Present",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "4b5397ac-e059-5bef-8468-a967fd7b5ce2"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> List Devices",
              "targetStep": "/api/3/workflow_steps/94c35e64-285a-5d11-909a-aa20f623bdb7",
              "sourceStep": "/api/3/workflow_steps/9e64fa1d-4b99-5369-93b3-e4f87258a593",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d051e05e-ae4b-5a99-b751-94b200facf49"
            },
            {
              "@type": "WorkflowRoute",
              "name": "List Devices -> Route",
              "targetStep": "/api/3/workflow_steps/0e2645cd-fd08-5475-8a29-396c181fc08d",
              "sourceStep": "/api/3/workflow_steps/94c35e64-285a-5d11-909a-aa20f623bdb7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "352bd860-2bc2-5a82-8428-d7d937fe6ab6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Route -> No Enrolled Devices",
              "targetStep": "/api/3/workflow_steps/b6c07205-52ff-51b0-8b25-e84c8df755a8",
              "sourceStep": "/api/3/workflow_steps/0e2645cd-fd08-5475-8a29-396c181fc08d",
              "label": "no devices",
              "isExecuted": false,
              "group": null,
              "uuid": "489630f2-dc2c-54eb-a92c-7cb7fe5a907c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Route -> Devices Present",
              "targetStep": "/api/3/workflow_steps/4b5397ac-e059-5bef-8468-a967fd7b5ce2",
              "sourceStep": "/api/3/workflow_steps/0e2645cd-fd08-5475-8a29-396c181fc08d",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "b0cb2771-d145-5d3b-b609-ef35f3d84fed"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "c391c3b7-4823-56a4-866a-c0717fafe6f0",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "Intune - Device lookup and sync",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Look up one managed device by ID. If it exists, request a sync so policy and compliance refresh. Non-destructive: sync changes nothing on the device except a check-in. A missing device ends the run without a device action.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "managedDeviceId"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/b4784714-c243-5428-9ba4-c84ac30c50ae",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "managedDeviceId"
                  }
                ],
                "title": "Intune - Device lookup and sync",
                "resources": [
                  "alerts"
                ],
                "route": "4a1d9ff8-7fc5-5451-a268-f46862b14f84",
                "step_variables": {
                  "input": {
                    "params": {
                      "managedDeviceId": "{{vars.request.data[\"managedDeviceId\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "alerts": {
                    "sort": [],
                    "limit": 30,
                    "logic": "AND",
                    "filters": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/f414d039-bb0d-4e59-9c39-a8f1e880b18a",
              "group": null,
              "uuid": "b4784714-c243-5428-9ba4-c84ac30c50ae"
            },
            {
              "@type": "WorkflowStep",
              "name": "Get Device",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "get_managed_device_details",
                "config": "",
                "ignore_errors": true,
                "params": {
                  "managedDeviceId": "{{ vars.input.params.managedDeviceId }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Get Managed Device Details",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "d1ffaa6c-80b0-5fca-aa38-f2a1c79798ad"
            },
            {
              "@type": "WorkflowStep",
              "name": "Device Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "found",
                    "condition": "{{ vars.steps.Get_Device.data is defined and vars.steps.Get_Device.data.id is defined }}",
                    "step_iri": "/api/3/workflow_steps/c3c4c777-0ff6-5e65-a821-025bd56b5489",
                    "step_name": "Request Sync"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/92654b7c-4c4f-546d-b801-0719e2bf63f8",
                    "step_name": "Device Not Found"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "9100c9f9-29a9-510e-8849-cff40ac437c6"
            },
            {
              "@type": "WorkflowStep",
              "name": "Request Sync",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "sync_device",
                "config": "",
                "params": {
                  "managedDeviceId": "{{ vars.input.params.managedDeviceId }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Sync Device",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "c3c4c777-0ff6-5e65-a821-025bd56b5489"
            },
            {
              "@type": "WorkflowStep",
              "name": "Sync Requested",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "1abb1fc3-026c-5a5f-a09e-1a24133ca8a4"
            },
            {
              "@type": "WorkflowStep",
              "name": "Device Not Found",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "92654b7c-4c4f-546d-b801-0719e2bf63f8"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Get Device",
              "targetStep": "/api/3/workflow_steps/d1ffaa6c-80b0-5fca-aa38-f2a1c79798ad",
              "sourceStep": "/api/3/workflow_steps/b4784714-c243-5428-9ba4-c84ac30c50ae",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "5258a99e-650a-5988-b1f7-39462eae180d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get Device -> Device Found",
              "targetStep": "/api/3/workflow_steps/9100c9f9-29a9-510e-8849-cff40ac437c6",
              "sourceStep": "/api/3/workflow_steps/d1ffaa6c-80b0-5fca-aa38-f2a1c79798ad",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "7e1c90ac-5c1f-5156-9650-d528806ab227"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Device Found -> Request Sync",
              "targetStep": "/api/3/workflow_steps/c3c4c777-0ff6-5e65-a821-025bd56b5489",
              "sourceStep": "/api/3/workflow_steps/9100c9f9-29a9-510e-8849-cff40ac437c6",
              "label": "found",
              "isExecuted": false,
              "group": null,
              "uuid": "7984d1b6-a615-5ff2-bcbc-237988c0d6ac"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Device Found -> Device Not Found",
              "targetStep": "/api/3/workflow_steps/92654b7c-4c4f-546d-b801-0719e2bf63f8",
              "sourceStep": "/api/3/workflow_steps/9100c9f9-29a9-510e-8849-cff40ac437c6",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "55b57a0b-4eea-55d9-b30b-a8f51610a2fa"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Request Sync -> Sync Requested",
              "targetStep": "/api/3/workflow_steps/1abb1fc3-026c-5a5f-a09e-1a24133ca8a4",
              "sourceStep": "/api/3/workflow_steps/c3c4c777-0ff6-5e65-a821-025bd56b5489",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a78644a8-8221-59da-be34-5edcbf8dd1fc"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "7ec76061-a1c3-58c8-a5a4-84880049a95f",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "Harden endpoint on incident",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Add an Entra device to a SOC Scratch group that carries a stricter Defender AV policy, then read the policy status for that device. A device not found in Entra ends the run before any membership change.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "deviceName",
            "groupId",
            "policyId"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/1b328cd3-5974-53f5-a34f-c69762743b92",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "deviceName"
                  },
                  {
                    "name": "groupId"
                  },
                  {
                    "name": "policyId"
                  }
                ],
                "title": "Harden endpoint on incident",
                "resources": [
                  "alerts"
                ],
                "route": "387436cd-8909-51ad-8a2b-789e9be40896",
                "step_variables": {
                  "input": {
                    "params": {
                      "deviceName": "{{vars.request.data[\"deviceName\"]}}",
                      "groupId": "{{vars.request.data[\"groupId\"]}}",
                      "policyId": "{{vars.request.data[\"policyId\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "alerts": {
                    "sort": [],
                    "limit": 30,
                    "logic": "AND",
                    "filters": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/f414d039-bb0d-4e59-9c39-a8f1e880b18a",
              "group": null,
              "uuid": "1b328cd3-5974-53f5-a34f-c69762743b92"
            },
            {
              "@type": "WorkflowStep",
              "name": "Find Device",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "resolve_entra_device",
                "config": "",
                "params": {
                  "deviceName": "{{ vars.input.params.deviceName }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Find Entra Device By Name",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "a6c9fb4c-f86d-5e1b-94a9-38b113cc1d6c"
            },
            {
              "@type": "WorkflowStep",
              "name": "Device Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "found",
                    "condition": "{{ vars.steps.Find_Device.data.found == true }}",
                    "step_iri": "/api/3/workflow_steps/a227149d-2e22-59f6-a56c-4cff9857958f",
                    "step_name": "Add To Group"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/6cfbc2b3-147b-5bf4-9387-85363970cf29",
                    "step_name": "Device Not Found"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "d62dcd2a-ccae-5988-8266-32f653fee526"
            },
            {
              "@type": "WorkflowStep",
              "name": "Add To Group",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "add_device_to_group",
                "config": "",
                "params": {
                  "groupId": "{{ vars.input.params.groupId }}",
                  "deviceId": "{{ vars.steps.Find_Device.data.deviceId }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Add Device To SOC Scratch Group",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "a227149d-2e22-59f6-a56c-4cff9857958f"
            },
            {
              "@type": "WorkflowStep",
              "name": "Read Policy Status",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "get_endpoint_security_policy_status",
                "config": "",
                "params": {
                  "policyId": "{{ vars.input.params.policyId }}",
                  "deviceName": "{{ vars.input.params.deviceName }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Get Endpoint Security Policy Status",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "5ca740d8-2322-598b-ba96-556f07e10d5f"
            },
            {
              "@type": "WorkflowStep",
              "name": "Policy Problem Check",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "problem",
                    "condition": "{{ vars.steps.Read_Policy_Status.data.count > 0 }}",
                    "step_iri": "/api/3/workflow_steps/137a416a-f338-5c88-86b6-d99b54240a52",
                    "step_name": "Policy Reported Problem"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/ed42b729-573d-526d-b0e6-a8bb01171c61",
                    "step_name": "Policy Clean"
                  }
                ]
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "c5f7b8cf-4257-5705-b5f2-157c43063394"
            },
            {
              "@type": "WorkflowStep",
              "name": "Policy Clean",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "900",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "ed42b729-573d-526d-b0e6-a8bb01171c61"
            },
            {
              "@type": "WorkflowStep",
              "name": "Policy Reported Problem",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "900",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "137a416a-f338-5c88-86b6-d99b54240a52"
            },
            {
              "@type": "WorkflowStep",
              "name": "Device Not Found",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "6cfbc2b3-147b-5bf4-9387-85363970cf29"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Find Device",
              "targetStep": "/api/3/workflow_steps/a6c9fb4c-f86d-5e1b-94a9-38b113cc1d6c",
              "sourceStep": "/api/3/workflow_steps/1b328cd3-5974-53f5-a34f-c69762743b92",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2a1f9cc8-3979-5686-a388-6a609d6ed862"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Find Device -> Device Found",
              "targetStep": "/api/3/workflow_steps/d62dcd2a-ccae-5988-8266-32f653fee526",
              "sourceStep": "/api/3/workflow_steps/a6c9fb4c-f86d-5e1b-94a9-38b113cc1d6c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "5bf3a8e9-f832-5135-baa9-9e2a0e2d1469"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Device Found -> Add To Group",
              "targetStep": "/api/3/workflow_steps/a227149d-2e22-59f6-a56c-4cff9857958f",
              "sourceStep": "/api/3/workflow_steps/d62dcd2a-ccae-5988-8266-32f653fee526",
              "label": "found",
              "isExecuted": false,
              "group": null,
              "uuid": "939cccbb-1ec3-5790-966f-fa65d456480b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Device Found -> Device Not Found",
              "targetStep": "/api/3/workflow_steps/6cfbc2b3-147b-5bf4-9387-85363970cf29",
              "sourceStep": "/api/3/workflow_steps/d62dcd2a-ccae-5988-8266-32f653fee526",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "4dbb04b2-16a2-5d36-9e70-c476a909f67b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add To Group -> Read Policy Status",
              "targetStep": "/api/3/workflow_steps/5ca740d8-2322-598b-ba96-556f07e10d5f",
              "sourceStep": "/api/3/workflow_steps/a227149d-2e22-59f6-a56c-4cff9857958f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "bdf3f9c6-508b-50c7-855e-f54f47eadbad"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Read Policy Status -> Policy Problem Check",
              "targetStep": "/api/3/workflow_steps/c5f7b8cf-4257-5705-b5f2-157c43063394",
              "sourceStep": "/api/3/workflow_steps/5ca740d8-2322-598b-ba96-556f07e10d5f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c1487ca9-5577-584f-93ff-54a0d3b1d570"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Policy Problem Check -> Policy Reported Problem",
              "targetStep": "/api/3/workflow_steps/137a416a-f338-5c88-86b6-d99b54240a52",
              "sourceStep": "/api/3/workflow_steps/c5f7b8cf-4257-5705-b5f2-157c43063394",
              "label": "problem",
              "isExecuted": false,
              "group": null,
              "uuid": "b407860f-e662-5a17-bd68-67d4a69e0be2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Policy Problem Check -> Policy Clean",
              "targetStep": "/api/3/workflow_steps/ed42b729-573d-526d-b0e6-a8bb01171c61",
              "sourceStep": "/api/3/workflow_steps/c5f7b8cf-4257-5705-b5f2-157c43063394",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "681001ca-4da4-5584-8c05-ee372897a49f"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "60a862c9-7655-5b69-b0fb-e64e7f98131d",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "Block IP on endpoint firewall",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Create a SOC Scratch Windows Firewall Rules policy with an outbound rule to one remote IP, assign it to a SOC Scratch group, and read the policy status. The rule's action is Block (action_type_0); without it Windows creates an Allow rule.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "remoteIp",
            "groupId"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/88e35aae-473f-57aa-bdca-b43a62324f77",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "remoteIp"
                  },
                  {
                    "name": "groupId"
                  }
                ],
                "title": "Block IP on endpoint firewall",
                "resources": [
                  "alerts"
                ],
                "route": "750c5c51-66bc-5c39-aeab-fd8c496e1cc0",
                "step_variables": {
                  "input": {
                    "params": {
                      "remoteIp": "{{vars.request.data[\"remoteIp\"]}}",
                      "groupId": "{{vars.request.data[\"groupId\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "alerts": {
                    "sort": [],
                    "limit": 30,
                    "logic": "AND",
                    "filters": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/f414d039-bb0d-4e59-9c39-a8f1e880b18a",
              "group": null,
              "uuid": "88e35aae-473f-57aa-bdca-b43a62324f77"
            },
            {
              "@type": "WorkflowStep",
              "name": "Create Rule Policy",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "create_endpoint_security_policy",
                "config": "",
                "params": {
                  "name": "SOC Scratch Block {{ vars.input.params.remoteIp }}",
                  "description": "Scratch firewall rule (playbook)",
                  "templateId": "19c8aa67-f286-4861-9aa0-f23541d31680_1",
                  "platforms": "windows10",
                  "technologies": "mdm,microsoftSense",
                  "settingsJson": "[{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationSetting\",\"settingInstance\":{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationGroupSettingCollectionInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"76c7a8be-67d2-44bf-81a5-38c94926b1a1\"},\"groupSettingCollectionValue\":[{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationGroupSettingValue\",\"children\":[{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationSimpleSettingInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_name\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"116a696a-3270-493e-9938-c336cf05ea98\"},\"simpleSettingValue\":{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationStringSettingValue\",\"value\":\"SOC Scratch block {{ vars.input.params.remoteIp }}\"}},{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_direction\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"2114ad3d-157c-47d3-b646-60fcf50949c7\"},\"choiceSettingValue\":{\"value\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_direction_out\",\"children\":[]}},{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_action_type\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"0565cfd1-21c2-4965-b87f-6bde2b8d2cbd\"},\"choiceSettingValue\":{\"value\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_action_type_0\",\"children\":[]}},{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationSimpleSettingCollectionInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_remoteaddressranges\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"bf9855fc-f2c0-4241-94cf-94cf823f1c1c\"},\"simpleSettingCollectionValue\":[{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationStringSettingValue\",\"value\":\"{{ vars.input.params.remoteIp }}\"}]},{\"@odata.type\":\"#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance\",\"settingDefinitionId\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_enabled\",\"settingInstanceTemplateReference\":{\"settingInstanceTemplateId\":\"4e150e1a-6a10-49b2-a20c-911bf44ea767\"},\"choiceSettingValue\":{\"value\":\"vendor_msft_firewall_mdmstore_firewallrules_{firewallrulename}_enabled_1\",\"children\":[]}}]}]}}]"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Create Endpoint Security Policy",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "4d906746-4cfa-5657-bd68-08290a8a9e35"
            },
            {
              "@type": "WorkflowStep",
              "name": "Assign To Group",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "assign_endpoint_security_policy",
                "config": "",
                "params": {
                  "policyId": "{{ vars.steps.Create_Rule_Policy.data.policyId }}",
                  "groupId": "{{ vars.input.params.groupId }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Assign Endpoint Security Policy To Group",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "44c1332c-18fb-517a-844e-9032fe87f365"
            },
            {
              "@type": "WorkflowStep",
              "name": "Read Status",
              "description": null,
              "arguments": {
                "connector": "microsoft-intune-v2",
                "operation": "get_endpoint_security_policy_status",
                "config": "",
                "params": {
                  "policyId": "{{ vars.steps.Create_Rule_Policy.data.policyId }}"
                },
                "version": "2.1.3",
                "name": "Microsoft Intune (v2)",
                "operationTitle": "Get Endpoint Security Policy Status",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "5d3561af-c767-5329-affe-d4419012a3a6"
            },
            {
              "@type": "WorkflowStep",
              "name": "Status Check",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "problem",
                    "condition": "{{ vars.steps.Read_Status.data.count > 0 }}",
                    "step_iri": "/api/3/workflow_steps/99d02fe3-ab46-5c62-b226-bcccbf8e68b7",
                    "step_name": "Policy Reported Problem"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/41212d38-9d10-5cbb-8437-4b168cf23af1",
                    "step_name": "Rule Assigned"
                  }
                ]
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "ea97f440-b133-58d5-9f5d-bfd9b933ead0"
            },
            {
              "@type": "WorkflowStep",
              "name": "Rule Assigned",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "770",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "41212d38-9d10-5cbb-8437-4b168cf23af1"
            },
            {
              "@type": "WorkflowStep",
              "name": "Policy Reported Problem",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "99d02fe3-ab46-5c62-b226-bcccbf8e68b7"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Create Rule Policy",
              "targetStep": "/api/3/workflow_steps/4d906746-4cfa-5657-bd68-08290a8a9e35",
              "sourceStep": "/api/3/workflow_steps/88e35aae-473f-57aa-bdca-b43a62324f77",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "945b1d8b-2173-56b1-b004-60c6bc8a143d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Create Rule Policy -> Assign To Group",
              "targetStep": "/api/3/workflow_steps/44c1332c-18fb-517a-844e-9032fe87f365",
              "sourceStep": "/api/3/workflow_steps/4d906746-4cfa-5657-bd68-08290a8a9e35",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "83c87a6d-5ef9-5d5c-99ec-81283753d727"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Assign To Group -> Read Status",
              "targetStep": "/api/3/workflow_steps/5d3561af-c767-5329-affe-d4419012a3a6",
              "sourceStep": "/api/3/workflow_steps/44c1332c-18fb-517a-844e-9032fe87f365",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4eddb936-846c-5887-801b-854b1d3e4ed1"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Read Status -> Status Check",
              "targetStep": "/api/3/workflow_steps/ea97f440-b133-58d5-9f5d-bfd9b933ead0",
              "sourceStep": "/api/3/workflow_steps/5d3561af-c767-5329-affe-d4419012a3a6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "57a71b92-2adf-5d4b-99e0-a535939b2771"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Status Check -> Policy Reported Problem",
              "targetStep": "/api/3/workflow_steps/99d02fe3-ab46-5c62-b226-bcccbf8e68b7",
              "sourceStep": "/api/3/workflow_steps/ea97f440-b133-58d5-9f5d-bfd9b933ead0",
              "label": "problem",
              "isExecuted": false,
              "group": null,
              "uuid": "ce182cb7-ee77-5a45-bda2-326ced41d32c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Status Check -> Rule Assigned",
              "targetStep": "/api/3/workflow_steps/41212d38-9d10-5cbb-8437-4b168cf23af1",
              "sourceStep": "/api/3/workflow_steps/ea97f440-b133-58d5-9f5d-bfd9b933ead0",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "eecb974a-8f39-5203-afe0-005a62fd8ba2"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "507ab557-f69e-5dd9-9b0e-b12933d8c5c1",
          "isPrivate": false
        }
      ]
    }
  ]
}
