{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [
    "DevSecOps",
    "Microsoft",
    "azure-devops-v2"
  ],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "Sample - Azure DevOps v2 - 3.1.0",
      "description": "Use-case playbooks for the \"Azure DevOps v2\" connector: turning an incident into a work item, gating on pull request review, and revoking a service connection's pipeline access. Clone these into your own collection before editing.",
      "visible": true,
      "image": null,
      "uuid": "dc0e9355-5db1-53b8-9461-5af36e347362",
      "recordTags": [
        "azure-devops-v2",
        "Microsoft",
        "DevSecOps"
      ],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "ADO Incident To Work Item",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Creates an Issue (or the work item type given) from a FortiSOAR incident, adds a comment that links the incident, and reads the work item back. A creation that fails ends with outcome not_created.\nInputs: incident_title (required), incident_description, work_item_type (default Issue). Outputs: outcome (created or not_created), work_item_id.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "incident_title",
            "incident_description",
            "work_item_type"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/234cf859-221a-5c33-92ca-7729e78f1fa6",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "incident_title",
                    "type": "string",
                    "label": "Incident Title"
                  },
                  {
                    "name": "incident_description",
                    "type": "string",
                    "label": "Incident Description"
                  },
                  {
                    "name": "work_item_type",
                    "type": "string",
                    "label": "Work Item Type"
                  }
                ],
                "title": "Create Work Item",
                "resources": [
                  "incidents"
                ],
                "route": "95184e9c-455c-5db0-84a4-d2a84589dd07",
                "step_variables": {
                  "input": {
                    "params": {
                      "incident_title": "{{vars.request.data[\"incident_title\"]}}",
                      "incident_description": "{{vars.request.data[\"incident_description\"]}}",
                      "work_item_type": "{{vars.request.data[\"work_item_type\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "incidents": {
                    "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": "234cf859-221a-5c33-92ca-7729e78f1fa6"
            },
            {
              "@type": "WorkflowStep",
              "name": "Resolve Inputs",
              "description": null,
              "arguments": {
                "incident_title": "{{ vars.input.params.incident_title | default('', true) }}",
                "incident_description": "{{ vars.input.params.incident_description | default('', true) }}",
                "work_item_type": "{{ vars.input.params.work_item_type | default('Issue', true) }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "79e7e3f6-6bb8-54a7-8d79-ed955f7fe468"
            },
            {
              "@type": "WorkflowStep",
              "name": "Create Work Item",
              "description": null,
              "arguments": {
                "ignore_errors": true,
                "connector": "azure-devops-v2",
                "operation": "create_work_item",
                "config": "",
                "params": {
                  "work_item_type": "{{ vars.work_item_type }}",
                  "title": "{{ vars.incident_title }}",
                  "description": "{{ vars.incident_description }}"
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "Create Work Item",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "97be0ae1-acfe-5a07-855e-6d60be726d26"
            },
            {
              "@type": "WorkflowStep",
              "name": "Work Item Created",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "The work item has an id",
                    "condition": "{{ (vars.steps.Create_Work_Item.data.id | default('', true) | string) != '' }}",
                    "step_iri": "/api/3/workflow_steps/566cc5ef-6171-5088-97a2-1b043a9935bb",
                    "step_name": "Comment On Work Item"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/f3954e5a-882e-5ae9-8ecf-77c2920f76b9",
                    "step_name": "Not Created"
                  }
                ]
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "251be808-debe-5e57-b2c6-3137f6e0a301"
            },
            {
              "@type": "WorkflowStep",
              "name": "Comment On Work Item",
              "description": null,
              "arguments": {
                "ignore_errors": true,
                "connector": "azure-devops-v2",
                "operation": "add_work_item_comment",
                "config": "",
                "params": {
                  "work_item_id": "{{ vars.steps.Create_Work_Item.data.id }}",
                  "text": "Linked from a FortiSOAR incident: {{ vars.incident_title }}"
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "Add Work Item Comment",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "566cc5ef-6171-5088-97a2-1b043a9935bb"
            },
            {
              "@type": "WorkflowStep",
              "name": "Read Work Item",
              "description": null,
              "arguments": {
                "ignore_errors": true,
                "connector": "azure-devops-v2",
                "operation": "get_work_item",
                "config": "",
                "params": {
                  "work_item_id": "{{ vars.steps.Create_Work_Item.data.id }}"
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "Get Work Item",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "983c9db0-c5d3-55ab-9d11-f3987e2f46ab"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Created",
              "description": null,
              "arguments": {
                "outcome": "created",
                "work_item_id": "{{ vars.steps.Create_Work_Item.data.id }}"
              },
              "status": null,
              "top": "900",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "baa398cb-edff-55ee-8a1d-73aa3ae7a541"
            },
            {
              "@type": "WorkflowStep",
              "name": "Not Created",
              "description": null,
              "arguments": {
                "outcome": "not_created",
                "work_item_id": ""
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "f3954e5a-882e-5ae9-8ecf-77c2920f76b9"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Work Item",
              "description": null,
              "arguments": {
                "outcome": "{{ vars.outcome | default('not_created', true) }}"
              },
              "status": null,
              "top": "1030",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "e9764168-5b5f-5891-88e4-8fd173bfa2d8"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Resolve Inputs",
              "targetStep": "/api/3/workflow_steps/79e7e3f6-6bb8-54a7-8d79-ed955f7fe468",
              "sourceStep": "/api/3/workflow_steps/234cf859-221a-5c33-92ca-7729e78f1fa6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ff1f47a5-43bc-577f-b4e0-1671c8bd16e6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Resolve Inputs -> Create Work Item",
              "targetStep": "/api/3/workflow_steps/97be0ae1-acfe-5a07-855e-6d60be726d26",
              "sourceStep": "/api/3/workflow_steps/79e7e3f6-6bb8-54a7-8d79-ed955f7fe468",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "35fc7961-df22-5656-bebb-065eed4246e5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Create Work Item -> Work Item Created",
              "targetStep": "/api/3/workflow_steps/251be808-debe-5e57-b2c6-3137f6e0a301",
              "sourceStep": "/api/3/workflow_steps/97be0ae1-acfe-5a07-855e-6d60be726d26",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b559ff9c-e545-56f1-ad8f-3c908eb75b62"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Work Item Created -> Comment On Work Item",
              "targetStep": "/api/3/workflow_steps/566cc5ef-6171-5088-97a2-1b043a9935bb",
              "sourceStep": "/api/3/workflow_steps/251be808-debe-5e57-b2c6-3137f6e0a301",
              "label": "The work item has an id",
              "isExecuted": false,
              "group": null,
              "uuid": "fdf06533-8526-57a9-866e-c5af1d749f4b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Work Item Created -> Not Created",
              "targetStep": "/api/3/workflow_steps/f3954e5a-882e-5ae9-8ecf-77c2920f76b9",
              "sourceStep": "/api/3/workflow_steps/251be808-debe-5e57-b2c6-3137f6e0a301",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "6cb4ea51-4f26-5587-93d8-05dd7bfe16c8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Comment On Work Item -> Read Work Item",
              "targetStep": "/api/3/workflow_steps/983c9db0-c5d3-55ab-9d11-f3987e2f46ab",
              "sourceStep": "/api/3/workflow_steps/566cc5ef-6171-5088-97a2-1b043a9935bb",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "43ec41b0-3964-5d29-b962-8ce30d9180ee"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Read Work Item -> Mark Created",
              "targetStep": "/api/3/workflow_steps/baa398cb-edff-55ee-8a1d-73aa3ae7a541",
              "sourceStep": "/api/3/workflow_steps/983c9db0-c5d3-55ab-9d11-f3987e2f46ab",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b9d89864-f7f8-5726-aebe-e68af2a78101"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Created -> End Work Item",
              "targetStep": "/api/3/workflow_steps/e9764168-5b5f-5891-88e4-8fd173bfa2d8",
              "sourceStep": "/api/3/workflow_steps/baa398cb-edff-55ee-8a1d-73aa3ae7a541",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "504ced91-9e3e-5024-a533-48bb0c92253d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Not Created -> End Work Item",
              "targetStep": "/api/3/workflow_steps/e9764168-5b5f-5891-88e4-8fd173bfa2d8",
              "sourceStep": "/api/3/workflow_steps/f3954e5a-882e-5ae9-8ecf-77c2920f76b9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "122e5ee4-48ef-5be0-aeef-1125cde01e7d"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "4a81e67f-7122-50b2-9afe-9fbe23d1c6c2",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "ADO PR Review Gate",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Lists the reviewers of a pull request. A reviewer who voted approve (vote 10 or 5) makes the outcome approved. Otherwise a review comment asks for review and the outcome is awaiting_review.\nInputs: repository_id (required), pull_request_id (required). Outputs: outcome (approved or awaiting_review), approvals.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "repository_id",
            "pull_request_id"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/6728d40d-0b65-57dc-b16e-b9c39f09cbac",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "repository_id",
                    "type": "string",
                    "label": "Repository"
                  },
                  {
                    "name": "pull_request_id",
                    "type": "integer",
                    "label": "Pull Request ID"
                  }
                ],
                "title": "Check PR Review",
                "resources": [
                  "incidents"
                ],
                "route": "65f96d0c-f91e-5b35-aa6d-0f9c2bd7e8fd",
                "step_variables": {
                  "input": {
                    "params": {
                      "repository_id": "{{vars.request.data[\"repository_id\"]}}",
                      "pull_request_id": "{{vars.request.data[\"pull_request_id\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "incidents": {
                    "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": "6728d40d-0b65-57dc-b16e-b9c39f09cbac"
            },
            {
              "@type": "WorkflowStep",
              "name": "List Reviewers",
              "description": null,
              "arguments": {
                "connector": "azure-devops-v2",
                "operation": "list_pull_request_reviewers",
                "config": "",
                "params": {
                  "repository_id": "{{ vars.input.params.repository_id }}",
                  "pull_request_id": "{{ vars.input.params.pull_request_id }}"
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "List Pull Request Reviewers",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "697da481-fc5b-58bf-9d59-89440f915b42"
            },
            {
              "@type": "WorkflowStep",
              "name": "Approved",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "A reviewer approved",
                    "condition": "{{ (vars.steps.List_Reviewers.data.value | default([], true) | selectattr('vote', 'ge', 5) | list | length) > 0 }}",
                    "step_iri": "/api/3/workflow_steps/0c2709e9-7fa7-59c7-b97d-36c77f00b06d",
                    "step_name": "Set Approved"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/90484328-2a01-5b39-8542-376836729799",
                    "step_name": "Request Review"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "7ea0f948-dd6b-5942-9e08-f66d95e5b31b"
            },
            {
              "@type": "WorkflowStep",
              "name": "Set Approved",
              "description": null,
              "arguments": {
                "outcome": "approved",
                "approvals": "{{ vars.steps.List_Reviewers.data.value | selectattr('vote', 'ge', 5) | list | length }}"
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "0c2709e9-7fa7-59c7-b97d-36c77f00b06d"
            },
            {
              "@type": "WorkflowStep",
              "name": "Request Review",
              "description": null,
              "arguments": {
                "ignore_errors": true,
                "connector": "azure-devops-v2",
                "operation": "create_pull_request_comment",
                "config": "",
                "params": {
                  "repository_id": "{{ vars.input.params.repository_id }}",
                  "pull_request_id": "{{ vars.input.params.pull_request_id }}",
                  "content": "FortiSOAR review gate: this pull request needs an approving review before it merges."
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "Create Pull Request Comment",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "90484328-2a01-5b39-8542-376836729799"
            },
            {
              "@type": "WorkflowStep",
              "name": "Set Awaiting",
              "description": null,
              "arguments": {
                "outcome": "awaiting_review",
                "approvals": 0
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "38192771-2619-5374-a65c-ac6061391906"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Review Gate",
              "description": null,
              "arguments": {
                "outcome": "{{ vars.outcome | default('awaiting_review', true) }}",
                "approvals": "{{ vars.approvals | default(0, true) }}"
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "528267d1-0086-518f-a3a9-ac9b834eabfe"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> List Reviewers",
              "targetStep": "/api/3/workflow_steps/697da481-fc5b-58bf-9d59-89440f915b42",
              "sourceStep": "/api/3/workflow_steps/6728d40d-0b65-57dc-b16e-b9c39f09cbac",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d7149274-1ad4-514a-ac4e-fdd460f052fe"
            },
            {
              "@type": "WorkflowRoute",
              "name": "List Reviewers -> Approved",
              "targetStep": "/api/3/workflow_steps/7ea0f948-dd6b-5942-9e08-f66d95e5b31b",
              "sourceStep": "/api/3/workflow_steps/697da481-fc5b-58bf-9d59-89440f915b42",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "84c90844-0804-5584-baac-e49d10558b4b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approved -> Set Approved",
              "targetStep": "/api/3/workflow_steps/0c2709e9-7fa7-59c7-b97d-36c77f00b06d",
              "sourceStep": "/api/3/workflow_steps/7ea0f948-dd6b-5942-9e08-f66d95e5b31b",
              "label": "A reviewer approved",
              "isExecuted": false,
              "group": null,
              "uuid": "db2babdb-6ea1-5f85-b9a7-a607e335321c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approved -> Request Review",
              "targetStep": "/api/3/workflow_steps/90484328-2a01-5b39-8542-376836729799",
              "sourceStep": "/api/3/workflow_steps/7ea0f948-dd6b-5942-9e08-f66d95e5b31b",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "f6258a62-7917-598c-827e-d6f6bf8fd85d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Approved -> End Review Gate",
              "targetStep": "/api/3/workflow_steps/528267d1-0086-518f-a3a9-ac9b834eabfe",
              "sourceStep": "/api/3/workflow_steps/0c2709e9-7fa7-59c7-b97d-36c77f00b06d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3338e279-0145-561f-a4c0-bf93c0d09c9f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Request Review -> Set Awaiting",
              "targetStep": "/api/3/workflow_steps/38192771-2619-5374-a65c-ac6061391906",
              "sourceStep": "/api/3/workflow_steps/90484328-2a01-5b39-8542-376836729799",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f9cd81c0-d753-59bb-a23e-559fc5342de8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Awaiting -> End Review Gate",
              "targetStep": "/api/3/workflow_steps/528267d1-0086-518f-a3a9-ac9b834eabfe",
              "sourceStep": "/api/3/workflow_steps/38192771-2619-5374-a65c-ac6061391906",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c8f72b5d-0d55-558c-8f0e-b3d66badd736"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "fb6a55e4-9f35-5320-8703-5852db6288cc",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "ADO Revoke Service Access",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Stops every pipeline from using a service connection by setting its pipeline authorization to false. The connection itself is kept, so it can be re-authorized later. Looks the connection up first; an unknown id ends with outcome not_found and changes nothing.\nInputs: service_connection_id (required, GUID). Outputs: outcome (revoked or not_found).",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "service_connection_id"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/c2ed272a-b684-5e41-8264-fbd7ffa0d5d0",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "service_connection_id",
                    "type": "string",
                    "label": "Service Connection ID"
                  }
                ],
                "title": "Revoke Service Access",
                "resources": [
                  "incidents"
                ],
                "route": "0f10d372-ab96-5e16-8966-08ba0f07a262",
                "step_variables": {
                  "input": {
                    "params": {
                      "service_connection_id": "{{vars.request.data[\"service_connection_id\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "incidents": {
                    "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": "c2ed272a-b684-5e41-8264-fbd7ffa0d5d0"
            },
            {
              "@type": "WorkflowStep",
              "name": "List Connections",
              "description": null,
              "arguments": {
                "connector": "azure-devops-v2",
                "operation": "list_service_connections",
                "config": "",
                "params": {
                  "type": "generic"
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "List Service Connections",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "7cf4e718-eb26-5933-a484-361efc8b79cf"
            },
            {
              "@type": "WorkflowStep",
              "name": "Connection Exists",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "The connection is in the project",
                    "condition": "{{ vars.input.params.service_connection_id in (vars.steps.List_Connections.data.value | map(attribute='id') | list) }}",
                    "step_iri": "/api/3/workflow_steps/bf8274ae-526d-5d24-8df0-5304aa75a783",
                    "step_name": "Revoke Access"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/01e759eb-d20d-573a-b836-c61ea127eb97",
                    "step_name": "Not Found"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "b555b1b6-b445-5c56-a925-cc22d04b3dcf"
            },
            {
              "@type": "WorkflowStep",
              "name": "Revoke Access",
              "description": null,
              "arguments": {
                "connector": "azure-devops-v2",
                "operation": "revoke_service_connection_pipeline_access",
                "config": "",
                "params": {
                  "service_connection_id": "{{ vars.input.params.service_connection_id }}",
                  "authorized": false
                },
                "version": "3.1.0",
                "name": "Azure DevOps v2",
                "operationTitle": "Revoke Service Connection Pipeline Access",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "bf8274ae-526d-5d24-8df0-5304aa75a783"
            },
            {
              "@type": "WorkflowStep",
              "name": "Set Revoked",
              "description": null,
              "arguments": {
                "outcome": "revoked"
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8b0f6a2f-70af-54b8-b086-0f5b4fe2396c"
            },
            {
              "@type": "WorkflowStep",
              "name": "Not Found",
              "description": null,
              "arguments": {
                "outcome": "not_found"
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "01e759eb-d20d-573a-b836-c61ea127eb97"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Revoke",
              "description": null,
              "arguments": {
                "outcome": "{{ vars.outcome | default('not_found', true) }}"
              },
              "status": null,
              "top": "770",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "50ad70c2-fccb-566a-8268-ca5478562d76"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> List Connections",
              "targetStep": "/api/3/workflow_steps/7cf4e718-eb26-5933-a484-361efc8b79cf",
              "sourceStep": "/api/3/workflow_steps/c2ed272a-b684-5e41-8264-fbd7ffa0d5d0",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f19b5315-1ec8-54fa-9e26-58e1d0070e0d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "List Connections -> Connection Exists",
              "targetStep": "/api/3/workflow_steps/b555b1b6-b445-5c56-a925-cc22d04b3dcf",
              "sourceStep": "/api/3/workflow_steps/7cf4e718-eb26-5933-a484-361efc8b79cf",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4e83e53f-f44e-507a-a64b-62cbc165c562"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Connection Exists -> Revoke Access",
              "targetStep": "/api/3/workflow_steps/bf8274ae-526d-5d24-8df0-5304aa75a783",
              "sourceStep": "/api/3/workflow_steps/b555b1b6-b445-5c56-a925-cc22d04b3dcf",
              "label": "The connection is in the project",
              "isExecuted": false,
              "group": null,
              "uuid": "16c4c101-84cb-5aba-9e59-87956367e26b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Connection Exists -> Not Found",
              "targetStep": "/api/3/workflow_steps/01e759eb-d20d-573a-b836-c61ea127eb97",
              "sourceStep": "/api/3/workflow_steps/b555b1b6-b445-5c56-a925-cc22d04b3dcf",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "ad9762d1-3c85-5c45-866f-da3762da49f6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Revoke Access -> Set Revoked",
              "targetStep": "/api/3/workflow_steps/8b0f6a2f-70af-54b8-b086-0f5b4fe2396c",
              "sourceStep": "/api/3/workflow_steps/bf8274ae-526d-5d24-8df0-5304aa75a783",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "024251f1-0181-58d0-961c-2e7f8cb4d3b6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Revoked -> End Revoke",
              "targetStep": "/api/3/workflow_steps/50ad70c2-fccb-566a-8268-ca5478562d76",
              "sourceStep": "/api/3/workflow_steps/8b0f6a2f-70af-54b8-b086-0f5b4fe2396c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "df603d0f-2a57-51a0-b721-35e9b179dba7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Not Found -> End Revoke",
              "targetStep": "/api/3/workflow_steps/50ad70c2-fccb-566a-8268-ca5478562d76",
              "sourceStep": "/api/3/workflow_steps/01e759eb-d20d-573a-b836-c61ea127eb97",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "453bd0c5-08ec-5576-8bca-2087082a110e"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "7379a2a9-5f03-553d-9b13-9077de11195a",
          "isPrivate": false
        }
      ]
    }
  ]
}
