{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [
    "Microsoft",
    "graph",
    "microsoft-graph-generic-v2"
  ],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "Sample - Microsoft Graph (Generic) v2 - 3.0.0",
      "description": "Use-case playbooks for the \"Microsoft Graph (Generic) v2\" connector: batched directory lookups, user enrichment with manager and not-found branches, and a paginated user listing. Clone these into your own collection before editing; the sample collection is replaced on connector upgrade.",
      "visible": true,
      "image": null,
      "uuid": "2ffae02f-335d-568b-af37-d88be8bb5779",
      "recordTags": [
        "microsoft-graph-generic-v2",
        "Microsoft",
        "graph"
      ],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "Graph Batch - Directory Lookups",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Looks up two users in one Graph $batch request and branches on the result. When both lookups succeed the outcome is all_found; when one or more sub-requests fail (for example a UPN that does not exist) the outcome is partial and the failed request ids are reported.\nInputs: upn_a and upn_b (user principal names; defaults are placeholders). Outputs: outcome (all_found or partial), failed_ids.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "upn_a",
            "upn_b"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/5f5e40f6-130c-51a8-a396-ab7d1a43787a",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "upn_a",
                    "type": "string",
                    "label": "First UPN"
                  },
                  {
                    "name": "upn_b",
                    "type": "string",
                    "label": "Second UPN"
                  }
                ],
                "title": "Run Graph Batch Lookups",
                "resources": [
                  "incidents"
                ],
                "route": "0926ed88-56d1-5b83-97fb-09091127d254",
                "step_variables": {
                  "input": {
                    "params": {
                      "upn_a": "{{vars.request.data[\"upn_a\"]}}",
                      "upn_b": "{{vars.request.data[\"upn_b\"]}}"
                    },
                    "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": "5f5e40f6-130c-51a8-a396-ab7d1a43787a"
            },
            {
              "@type": "WorkflowStep",
              "name": "Resolve Inputs",
              "description": null,
              "arguments": {
                "upn_a": "{{ vars.input.params.upn_a | default('alice@example.com', true) }}",
                "upn_b": "{{ vars.input.params.upn_b | default('bob@example.com', true) }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "a1e2f6a7-57dc-57c4-82fc-342d2b6eec78"
            },
            {
              "@type": "WorkflowStep",
              "name": "Batch Lookup",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-generic-v2",
                "operation": "graph_batch",
                "config": "",
                "params": {
                  "requests": [
                    {
                      "id": "a",
                      "method": "GET",
                      "url": "/users/{{ vars.upn_a }}?$select=id,userPrincipalName,displayName"
                    },
                    {
                      "id": "b",
                      "method": "GET",
                      "url": "/users/{{ vars.upn_b }}?$select=id,userPrincipalName,displayName"
                    }
                  ]
                },
                "version": "3.0.1",
                "name": "Microsoft Graph (Generic) v2",
                "operationTitle": "Graph Batch",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "ed2696da-f844-5c55-b7e0-da6ef6f3c841"
            },
            {
              "@type": "WorkflowStep",
              "name": "Batch Result",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "All lookups succeeded",
                    "condition": "{{ vars.steps.Batch_Lookup.data.failed_count == 0 }}",
                    "step_iri": "/api/3/workflow_steps/96b6470e-1506-5531-8481-c7bcf88bd57f",
                    "step_name": "Mark All Found"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/7be75218-5cde-56c0-b07c-31cff7dc5159",
                    "step_name": "Mark Partial"
                  }
                ]
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "8c07e75e-9128-53d5-97aa-94c3a379b9a3"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark All Found",
              "description": null,
              "arguments": {
                "outcome": "all_found",
                "failed_ids": []
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "96b6470e-1506-5531-8481-c7bcf88bd57f"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Partial",
              "description": null,
              "arguments": {
                "outcome": "partial",
                "failed_ids": "{{ vars.steps.Batch_Lookup.data.failed_ids }}"
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "7be75218-5cde-56c0-b07c-31cff7dc5159"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Batch",
              "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": "f3a56ed5-748d-52a2-8eca-d52429ee1b2e"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Resolve Inputs",
              "targetStep": "/api/3/workflow_steps/a1e2f6a7-57dc-57c4-82fc-342d2b6eec78",
              "sourceStep": "/api/3/workflow_steps/5f5e40f6-130c-51a8-a396-ab7d1a43787a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "004767b2-caa6-5317-a2f4-a5ce5433326a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Resolve Inputs -> Batch Lookup",
              "targetStep": "/api/3/workflow_steps/ed2696da-f844-5c55-b7e0-da6ef6f3c841",
              "sourceStep": "/api/3/workflow_steps/a1e2f6a7-57dc-57c4-82fc-342d2b6eec78",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "bab2a538-8d83-5a59-a577-9eb9cb855e9e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Batch Lookup -> Batch Result",
              "targetStep": "/api/3/workflow_steps/8c07e75e-9128-53d5-97aa-94c3a379b9a3",
              "sourceStep": "/api/3/workflow_steps/ed2696da-f844-5c55-b7e0-da6ef6f3c841",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "8f790b5b-69e1-5549-b242-011ff5c4de46"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Batch Result -> Mark All Found",
              "targetStep": "/api/3/workflow_steps/96b6470e-1506-5531-8481-c7bcf88bd57f",
              "sourceStep": "/api/3/workflow_steps/8c07e75e-9128-53d5-97aa-94c3a379b9a3",
              "label": "All lookups succeeded",
              "isExecuted": false,
              "group": null,
              "uuid": "2c893461-92c9-56dc-9a90-45ba8642184c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Batch Result -> Mark Partial",
              "targetStep": "/api/3/workflow_steps/7be75218-5cde-56c0-b07c-31cff7dc5159",
              "sourceStep": "/api/3/workflow_steps/8c07e75e-9128-53d5-97aa-94c3a379b9a3",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "f9741558-430e-53b2-96ed-7009bccc83bd"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark All Found -> End Batch",
              "targetStep": "/api/3/workflow_steps/f3a56ed5-748d-52a2-8eca-d52429ee1b2e",
              "sourceStep": "/api/3/workflow_steps/96b6470e-1506-5531-8481-c7bcf88bd57f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "56c9df6e-3022-5226-b337-71be41ae0291"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Partial -> End Batch",
              "targetStep": "/api/3/workflow_steps/f3a56ed5-748d-52a2-8eca-d52429ee1b2e",
              "sourceStep": "/api/3/workflow_steps/7be75218-5cde-56c0-b07c-31cff7dc5159",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c25217ea-bf95-57e9-9b93-e1fec51e9feb"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "a1ba0452-eba3-5edc-aae8-d2babe3639a5",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "Graph User Enrichment",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Fetches one user and, if the user exists, their manager, in a single $batch request. Outcomes: found_with_manager, found_no_manager, not_found (the user does not exist), or error (any other failure, such as an invalid $select field). The outcome and the user and manager fields are set on variables for the caller to write back onto a record.\nInputs: upn (user principal name), select_fields (the user $select list; the default is the standard set). Outputs: outcome, user_id, user_display_name, manager_upn, error_status.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "upn",
            "select_fields"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/c96f9d88-5aea-5192-9ad4-b1d70110eb54",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "upn",
                    "type": "string",
                    "label": "User Principal Name"
                  },
                  {
                    "name": "select_fields",
                    "type": "string",
                    "label": "User $select Fields"
                  }
                ],
                "title": "Run Graph User Enrichment",
                "resources": [
                  "incidents"
                ],
                "route": "197447ca-dbef-53ea-a344-7f66bf336407",
                "step_variables": {
                  "input": {
                    "params": {
                      "upn": "{{vars.request.data[\"upn\"]}}",
                      "select_fields": "{{vars.request.data[\"select_fields\"]}}"
                    },
                    "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": "c96f9d88-5aea-5192-9ad4-b1d70110eb54"
            },
            {
              "@type": "WorkflowStep",
              "name": "Resolve Inputs",
              "description": null,
              "arguments": {
                "upn": "{{ vars.input.params.upn | default('alice@example.com', true) }}",
                "select_fields": "{{ vars.input.params.select_fields | default('id,userPrincipalName,displayName,jobTitle', true) }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "cb3e675a-5d2d-50c9-9b3c-09ba0d7dc23c"
            },
            {
              "@type": "WorkflowStep",
              "name": "Enrichment Batch",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-generic-v2",
                "operation": "graph_batch",
                "config": "",
                "params": {
                  "requests": [
                    {
                      "method": "GET",
                      "url": "/users/{{ vars.upn }}?$select={{ vars.select_fields }}"
                    },
                    {
                      "method": "GET",
                      "url": "/users/{{ vars.upn }}/manager?$select=userPrincipalName,displayName"
                    }
                  ]
                },
                "version": "3.0.1",
                "name": "Microsoft Graph (Generic) v2",
                "operationTitle": "Graph Batch",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "28154f9c-4d64-57bb-bc74-df0b80de3eca"
            },
            {
              "@type": "WorkflowStep",
              "name": "User Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "User found",
                    "condition": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).status == 200 }}",
                    "step_iri": "/api/3/workflow_steps/4e72a127-e14b-5464-ba8b-b03cd28e52e0",
                    "step_name": "Manager Found"
                  },
                  {
                    "option": "User does not exist",
                    "condition": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).status == 404 }}",
                    "step_iri": "/api/3/workflow_steps/2bbff295-2d22-5bfb-bbf6-a62d6b0a8f8f",
                    "step_name": "Mark Not Found"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/df911581-eac6-5b7a-bd3f-44856f8d126e",
                    "step_name": "Mark Error"
                  }
                ]
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "9028891b-168d-5b21-b778-e0a8323bacee"
            },
            {
              "@type": "WorkflowStep",
              "name": "Manager Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "Manager exists",
                    "condition": "{{ (vars.steps.Enrichment_Batch.data.responses[1]).status == 200 }}",
                    "step_iri": "/api/3/workflow_steps/8f2562ee-bc80-50ed-a3db-248a38c2b897",
                    "step_name": "Mark Found With Manager"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/4890f8a9-0fe6-59a3-876a-f15addb562df",
                    "step_name": "Mark Found No Manager"
                  }
                ]
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "4e72a127-e14b-5464-ba8b-b03cd28e52e0"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Found With Manager",
              "description": null,
              "arguments": {
                "outcome": "found_with_manager",
                "user_id": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).body.id | default('', true) }}",
                "user_display_name": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).body.displayName | default('', true) }}",
                "manager_upn": "{{ (vars.steps.Enrichment_Batch.data.responses[1]).body.userPrincipalName | default('', true) }}",
                "error_status": 0
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8f2562ee-bc80-50ed-a3db-248a38c2b897"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Found No Manager",
              "description": null,
              "arguments": {
                "outcome": "found_no_manager",
                "user_id": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).body.id | default('', true) }}",
                "user_display_name": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).body.displayName | default('', true) }}",
                "manager_upn": "",
                "error_status": 0
              },
              "status": null,
              "top": "770",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "4890f8a9-0fe6-59a3-876a-f15addb562df"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Not Found",
              "description": null,
              "arguments": {
                "outcome": "not_found",
                "user_id": "",
                "user_display_name": "",
                "manager_upn": "",
                "error_status": 404
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "2bbff295-2d22-5bfb-bbf6-a62d6b0a8f8f"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Error",
              "description": null,
              "arguments": {
                "outcome": "error",
                "user_id": "",
                "user_display_name": "",
                "manager_upn": "",
                "error_status": "{{ (vars.steps.Enrichment_Batch.data.responses[0]).status }}"
              },
              "status": null,
              "top": "640",
              "left": "880",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "df911581-eac6-5b7a-bd3f-44856f8d126e"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Enrichment",
              "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": "91e732af-53d7-5f76-bcb4-aa0a135609d7"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Resolve Inputs",
              "targetStep": "/api/3/workflow_steps/cb3e675a-5d2d-50c9-9b3c-09ba0d7dc23c",
              "sourceStep": "/api/3/workflow_steps/c96f9d88-5aea-5192-9ad4-b1d70110eb54",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f17f70c3-0158-5406-bd1d-637ae6533a66"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Resolve Inputs -> Enrichment Batch",
              "targetStep": "/api/3/workflow_steps/28154f9c-4d64-57bb-bc74-df0b80de3eca",
              "sourceStep": "/api/3/workflow_steps/cb3e675a-5d2d-50c9-9b3c-09ba0d7dc23c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d86c4232-ee61-57eb-b4dd-dc88cef61ad3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Enrichment Batch -> User Found",
              "targetStep": "/api/3/workflow_steps/9028891b-168d-5b21-b778-e0a8323bacee",
              "sourceStep": "/api/3/workflow_steps/28154f9c-4d64-57bb-bc74-df0b80de3eca",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "efb9ea77-6f19-54e0-9e5b-d3111a3cf598"
            },
            {
              "@type": "WorkflowRoute",
              "name": "User Found -> Manager Found",
              "targetStep": "/api/3/workflow_steps/4e72a127-e14b-5464-ba8b-b03cd28e52e0",
              "sourceStep": "/api/3/workflow_steps/9028891b-168d-5b21-b778-e0a8323bacee",
              "label": "User found",
              "isExecuted": false,
              "group": null,
              "uuid": "7afe052d-1a8b-57c3-a702-7dbffe8ae01e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "User Found -> Mark Not Found",
              "targetStep": "/api/3/workflow_steps/2bbff295-2d22-5bfb-bbf6-a62d6b0a8f8f",
              "sourceStep": "/api/3/workflow_steps/9028891b-168d-5b21-b778-e0a8323bacee",
              "label": "User does not exist",
              "isExecuted": false,
              "group": null,
              "uuid": "9072dad9-cf6d-51da-84e2-5dae1f1fc8f9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "User Found -> Mark Error",
              "targetStep": "/api/3/workflow_steps/df911581-eac6-5b7a-bd3f-44856f8d126e",
              "sourceStep": "/api/3/workflow_steps/9028891b-168d-5b21-b778-e0a8323bacee",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "5a67c43d-fd1e-56b7-9467-5eab049d5c64"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Manager Found -> Mark Found With Manager",
              "targetStep": "/api/3/workflow_steps/8f2562ee-bc80-50ed-a3db-248a38c2b897",
              "sourceStep": "/api/3/workflow_steps/4e72a127-e14b-5464-ba8b-b03cd28e52e0",
              "label": "Manager exists",
              "isExecuted": false,
              "group": null,
              "uuid": "e04ee3d8-c5ab-5caf-b2bb-aebb32d6c5e5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Manager Found -> Mark Found No Manager",
              "targetStep": "/api/3/workflow_steps/4890f8a9-0fe6-59a3-876a-f15addb562df",
              "sourceStep": "/api/3/workflow_steps/4e72a127-e14b-5464-ba8b-b03cd28e52e0",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "e6f75aa8-1499-5794-b607-4e7cb0e86664"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Found With Manager -> End Enrichment",
              "targetStep": "/api/3/workflow_steps/91e732af-53d7-5f76-bcb4-aa0a135609d7",
              "sourceStep": "/api/3/workflow_steps/8f2562ee-bc80-50ed-a3db-248a38c2b897",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "67bd3df4-281c-56f3-913a-cfc18614ebf2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Found No Manager -> End Enrichment",
              "targetStep": "/api/3/workflow_steps/91e732af-53d7-5f76-bcb4-aa0a135609d7",
              "sourceStep": "/api/3/workflow_steps/4890f8a9-0fe6-59a3-876a-f15addb562df",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b2614a14-482a-55b6-9900-7a5633ef1653"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Not Found -> End Enrichment",
              "targetStep": "/api/3/workflow_steps/91e732af-53d7-5f76-bcb4-aa0a135609d7",
              "sourceStep": "/api/3/workflow_steps/2bbff295-2d22-5bfb-bbf6-a62d6b0a8f8f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e0fefcb6-0f1e-5407-9808-26f8a521241b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Error -> End Enrichment",
              "targetStep": "/api/3/workflow_steps/91e732af-53d7-5f76-bcb4-aa0a135609d7",
              "sourceStep": "/api/3/workflow_steps/df911581-eac6-5b7a-bd3f-44856f8d126e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d72caa3a-2704-5566-99b6-bfded72016b7"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "70c7547f-0100-5783-be3c-669cccdb8065",
          "isPrivate": false
        },
        {
          "@type": "Workflow",
          "name": "Graph Paginated User Listing",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Lists users whose display name starts with a prefix, or every user when the prefix is empty (no $filter is sent), following every @odata.nextLink page (bounded by Max Pages). Outcome listed when at least one user matches, no_matches otherwise. The matched users are kept in vars.matched_users for later steps.\nInputs: name_prefix (empty lists every user, up to Max Pages of results; a prefix adds startswith on displayName), max_pages. Outputs: outcome, matched_count, matched_users.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "name_prefix",
            "max_pages"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/4de4053e-d31d-5db9-a702-f827abd5bde9",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "name_prefix",
                    "type": "string",
                    "label": "Display Name Prefix"
                  },
                  {
                    "name": "max_pages",
                    "type": "string",
                    "label": "Max Pages"
                  }
                ],
                "title": "Run Graph Paginated Listing",
                "resources": [
                  "incidents"
                ],
                "route": "58c239da-63cc-59f5-bba8-2dfaf7462818",
                "step_variables": {
                  "input": {
                    "params": {
                      "name_prefix": "{{vars.request.data[\"name_prefix\"]}}",
                      "max_pages": "{{vars.request.data[\"max_pages\"]}}"
                    },
                    "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": "4de4053e-d31d-5db9-a702-f827abd5bde9"
            },
            {
              "@type": "WorkflowStep",
              "name": "Resolve Inputs",
              "description": null,
              "arguments": {
                "name_prefix": "{{ vars.input.params.name_prefix | default('', true) }}",
                "max_pages": "{{ vars.input.params.max_pages | default('2', true) }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "ef0695b4-0b91-5264-8865-e11e18adc290"
            },
            {
              "@type": "WorkflowStep",
              "name": "Has Prefix",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "Prefix given",
                    "condition": "{{ vars.name_prefix | trim != '' }}",
                    "step_iri": "/api/3/workflow_steps/34f6ebaa-8abf-5417-b197-4abebd449f24",
                    "step_name": "Paged Listing Prefix"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/c5dc565d-b191-5334-b141-1df3ffe36808",
                    "step_name": "Paged Listing All"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "4155daf7-531a-5f94-a663-c3b48d8a36d0"
            },
            {
              "@type": "WorkflowStep",
              "name": "Paged Listing All",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-generic-v2",
                "operation": "execute_api_request",
                "config": "",
                "params": {
                  "url": "/v1.0/users",
                  "method": "GET",
                  "query_params": {
                    "$select": "id,displayName,userPrincipalName",
                    "$top": "2"
                  },
                  "paginate": true,
                  "max_pages": "{{ vars.max_pages }}"
                },
                "version": "3.0.1",
                "name": "Microsoft Graph (Generic) v2",
                "operationTitle": "Execute API Request",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "c5dc565d-b191-5334-b141-1df3ffe36808"
            },
            {
              "@type": "WorkflowStep",
              "name": "Listing Result All",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "Users matched",
                    "condition": "{{ vars.steps.Paged_Listing_All.data.count | default(0) > 0 }}",
                    "step_iri": "/api/3/workflow_steps/8f8b395b-f46a-58e7-93cc-ec866ccd0aed",
                    "step_name": "Mark Listed All"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/c6f36620-0789-5247-be04-788252b6e77f",
                    "step_name": "Mark No Matches"
                  }
                ]
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "f3de0c03-4461-5823-a9a2-e3ff7690a92e"
            },
            {
              "@type": "WorkflowStep",
              "name": "Paged Listing Prefix",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-generic-v2",
                "operation": "execute_api_request",
                "config": "",
                "params": {
                  "url": "/v1.0/users",
                  "method": "GET",
                  "query_params": {
                    "$select": "id,displayName,userPrincipalName",
                    "$filter": "startswith(displayName,'{{ vars.name_prefix }}')",
                    "$top": "2"
                  },
                  "paginate": true,
                  "max_pages": "{{ vars.max_pages }}",
                  "extra_headers": {
                    "ConsistencyLevel": "eventual"
                  }
                },
                "version": "3.0.1",
                "name": "Microsoft Graph (Generic) v2",
                "operationTitle": "Execute API Request",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "34f6ebaa-8abf-5417-b197-4abebd449f24"
            },
            {
              "@type": "WorkflowStep",
              "name": "Listing Result Prefix",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "Users matched",
                    "condition": "{{ vars.steps.Paged_Listing_Prefix.data.count | default(0) > 0 }}",
                    "step_iri": "/api/3/workflow_steps/02be8279-7145-5efe-bf1b-82652403bf83",
                    "step_name": "Mark Listed"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/c6f36620-0789-5247-be04-788252b6e77f",
                    "step_name": "Mark No Matches"
                  }
                ]
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "81d9ebf4-1264-5507-a8c6-1f9879837871"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Listed",
              "description": null,
              "arguments": {
                "outcome": "listed",
                "matched_count": "{{ vars.steps.Paged_Listing_Prefix.data.count }}",
                "matched_users": "{{ vars.steps.Paged_Listing_Prefix.data.items }}"
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "02be8279-7145-5efe-bf1b-82652403bf83"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark Listed All",
              "description": null,
              "arguments": {
                "outcome": "listed",
                "matched_count": "{{ vars.steps.Paged_Listing_All.data.count }}",
                "matched_users": "{{ vars.steps.Paged_Listing_All.data.items }}"
              },
              "status": null,
              "top": "770",
              "left": "880",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8f8b395b-f46a-58e7-93cc-ec866ccd0aed"
            },
            {
              "@type": "WorkflowStep",
              "name": "Mark No Matches",
              "description": null,
              "arguments": {
                "outcome": "no_matches",
                "matched_count": 0,
                "matched_users": []
              },
              "status": null,
              "top": "770",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "c6f36620-0789-5247-be04-788252b6e77f"
            },
            {
              "@type": "WorkflowStep",
              "name": "End Listing",
              "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": "f58afd21-b7bf-5fcd-811c-266a3264aa5b"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Resolve Inputs",
              "targetStep": "/api/3/workflow_steps/ef0695b4-0b91-5264-8865-e11e18adc290",
              "sourceStep": "/api/3/workflow_steps/4de4053e-d31d-5db9-a702-f827abd5bde9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6d957b14-56a3-5b8a-8659-8ecdc80fec93"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Resolve Inputs -> Has Prefix",
              "targetStep": "/api/3/workflow_steps/4155daf7-531a-5f94-a663-c3b48d8a36d0",
              "sourceStep": "/api/3/workflow_steps/ef0695b4-0b91-5264-8865-e11e18adc290",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ef162418-1475-5b59-93d4-43ef48afc0e1"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Has Prefix -> Paged Listing Prefix",
              "targetStep": "/api/3/workflow_steps/34f6ebaa-8abf-5417-b197-4abebd449f24",
              "sourceStep": "/api/3/workflow_steps/4155daf7-531a-5f94-a663-c3b48d8a36d0",
              "label": "Prefix given",
              "isExecuted": false,
              "group": null,
              "uuid": "c87e5484-0ebe-58c7-8706-c075876c16ef"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Has Prefix -> Paged Listing All",
              "targetStep": "/api/3/workflow_steps/c5dc565d-b191-5334-b141-1df3ffe36808",
              "sourceStep": "/api/3/workflow_steps/4155daf7-531a-5f94-a663-c3b48d8a36d0",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "6f7f034d-cd24-5088-94fa-3a5e4fdb9c4b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Paged Listing All -> Listing Result All",
              "targetStep": "/api/3/workflow_steps/f3de0c03-4461-5823-a9a2-e3ff7690a92e",
              "sourceStep": "/api/3/workflow_steps/c5dc565d-b191-5334-b141-1df3ffe36808",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "7ab9833c-4741-5eee-927c-d578abb9ad41"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Listing Result All -> Mark Listed All",
              "targetStep": "/api/3/workflow_steps/8f8b395b-f46a-58e7-93cc-ec866ccd0aed",
              "sourceStep": "/api/3/workflow_steps/f3de0c03-4461-5823-a9a2-e3ff7690a92e",
              "label": "Users matched",
              "isExecuted": false,
              "group": null,
              "uuid": "b88fdfc3-2bd9-515d-bd3c-b20c2cad4f83"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Listing Result All -> Mark No Matches",
              "targetStep": "/api/3/workflow_steps/c6f36620-0789-5247-be04-788252b6e77f",
              "sourceStep": "/api/3/workflow_steps/f3de0c03-4461-5823-a9a2-e3ff7690a92e",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "7fecfdd7-0359-5d3b-87fa-d4ca499eb4f4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Paged Listing Prefix -> Listing Result Prefix",
              "targetStep": "/api/3/workflow_steps/81d9ebf4-1264-5507-a8c6-1f9879837871",
              "sourceStep": "/api/3/workflow_steps/34f6ebaa-8abf-5417-b197-4abebd449f24",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e5811199-0ef8-57cd-81b8-af92c9821c99"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Listing Result Prefix -> Mark Listed",
              "targetStep": "/api/3/workflow_steps/02be8279-7145-5efe-bf1b-82652403bf83",
              "sourceStep": "/api/3/workflow_steps/81d9ebf4-1264-5507-a8c6-1f9879837871",
              "label": "Users matched",
              "isExecuted": false,
              "group": null,
              "uuid": "59895c8f-ed90-504d-a0d2-09ad8ac513a9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Listing Result Prefix -> Mark No Matches",
              "targetStep": "/api/3/workflow_steps/c6f36620-0789-5247-be04-788252b6e77f",
              "sourceStep": "/api/3/workflow_steps/81d9ebf4-1264-5507-a8c6-1f9879837871",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "0fa5abcb-f877-50ce-8e3e-96d191393954"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Listed -> End Listing",
              "targetStep": "/api/3/workflow_steps/f58afd21-b7bf-5fcd-811c-266a3264aa5b",
              "sourceStep": "/api/3/workflow_steps/02be8279-7145-5efe-bf1b-82652403bf83",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6d985836-5a63-5ca8-9b45-aa55d6c0c1f2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark Listed All -> End Listing",
              "targetStep": "/api/3/workflow_steps/f58afd21-b7bf-5fcd-811c-266a3264aa5b",
              "sourceStep": "/api/3/workflow_steps/8f8b395b-f46a-58e7-93cc-ec866ccd0aed",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d4368eb4-7968-501a-aa02-cb66bc06fdb2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Mark No Matches -> End Listing",
              "targetStep": "/api/3/workflow_steps/f58afd21-b7bf-5fcd-811c-266a3264aa5b",
              "sourceStep": "/api/3/workflow_steps/c6f36620-0789-5247-be04-788252b6e77f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2bcaf299-0f0b-51ac-b2cb-b9ca1732475c"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "771c6be7-4866-5dff-aadb-dac44fa867fb",
          "isPrivate": false
        }
      ]
    }
  ]
}
