{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [
    "Microsoft",
    "microsoft-entra-id-v2",
    "security"
  ],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "Sample - Microsoft Entra ID v2 - 1.0.1",
      "description": "Sample playbook for the \"Microsoft Entra ID v2\" connector. Clone it and move the clone to your own collection before you change it, since the sample collection is replaced on connector upgrade and delete.",
      "visible": true,
      "image": null,
      "uuid": "cde797e7-0720-51c7-a028-6cba30384e35",
      "recordTags": [
        "microsoft-entra-id-v2",
        "Microsoft",
        "security"
      ],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "Respond to Compromised User Report",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "One playbook for the \"a user may be compromised\" report: it checks Entra ID Protection for the reported account, asks a human to approve the response through a Microsoft Teams approval card, and on approval revokes the user's active sessions and blocks the reported source IP by appending it to an IP named location in Conditional Access. Both outcomes write a close-out comment on the security alert that carries the report, so the trail ends in the alert, not in someone's inbox.\nWhy best-effort on the risky-user lookup: this connector ships for tenants down to M365 Business Premium, where Identity Protection is P1 - the riskyUsers surface can be empty or refused while the rest of the response still makes sense. The lookup therefore runs with errors ignored and the playbook ends cleanly when it returns nothing actionable.\nInputs: approver (Teams recipient for the approval card; a conversation id or a user UPN the microsoft-teams connector can resolve - default soc-oncall@contoso.example), reported_ip (the source IP to block; default 198.51.100.7), named_location_name (the existing IP named location the IP is appended to - default \"Lab blocked ranges\"; the op appends to an EXISTING location, it does not create one), alert_id (the Graph security alerts_v2 id to comment on - default is the sample alert id). Outputs: outcome (contained, contained_no_block, not_approved or no_action_taken), risk_user, revoked, blocked_ip, named_location.\nLive prerequisites: the connector's app registration needs User.RevokeSessions.All, IdentityRiskyUser.Read.All (P1), Policy.Read.All (read the named locations) and Policy.ReadWrite.ConditionalAccess (the ipNamedLocation PATCH that block_new_ips sends). The IP named location must already exist. Run it from a schedule for the sweep variant, or from the Execute menu with the report details.",
          "isActive": false,
          "debug": true,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "approver",
            "reported_ip",
            "named_location_name",
            "alert_id"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/720031af-1b3e-5ba2-908f-8b9e57f603ba",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "step_variables": {
                  "input": {
                    "params": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null,
              "uuid": "720031af-1b3e-5ba2-908f-8b9e57f603ba"
            },
            {
              "@type": "WorkflowStep",
              "name": "Resolve Inputs",
              "description": null,
              "arguments": {
                "approver": "{{ vars.input.params.approver | default(vars.approver, true) | default('soc-oncall@contoso.example', true) }}",
                "reported_ip": "{{ vars.input.params.reported_ip | default(vars.reported_ip, true) | default('198.51.100.7', true) }}",
                "named_location_name": "{{ vars.input.params.named_location_name | default(vars.named_location_name, true) | default('Lab blocked ranges', true) }}",
                "alert_id": "{{ vars.input.params.alert_id | default(vars.alert_id, true) | default('00000000-0000-0000-0000-000000000b01', true) }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "1274a58c-3e89-5532-bd99-a0c6782a4e70"
            },
            {
              "@type": "WorkflowStep",
              "name": "List Risky Users",
              "description": null,
              "arguments": {
                "connector": "microsoft-entra-id-v2",
                "operation": "get_risky_users_list",
                "config": "",
                "params": {},
                "ignore_errors": true,
                "version": "1.0.1",
                "name": "Microsoft Entra ID v2",
                "operationTitle": "Get Risky Users List",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "2edf3cb8-39bb-510c-b049-90250465d970"
            },
            {
              "@type": "WorkflowStep",
              "name": "Risky Users Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "At-risk users found",
                    "condition": "{{ (vars.steps.List_Risky_Users.data.value | default([], true)) | selectattr('riskState', 'in', ['atRisk', 'confirmedCompromised']) | list | length > 0 }}",
                    "step_iri": "/api/3/workflow_steps/f8af2e4f-8efb-566a-b14a-edf4b6f06007",
                    "step_name": "Pick Risky User"
                  },
                  {
                    "option": "Nothing actionable",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/e6551059-9a82-531c-84d2-5178cd536a02",
                    "step_name": "No Action"
                  }
                ]
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "eae67de3-b968-558d-be48-de0ba4536802"
            },
            {
              "@type": "WorkflowStep",
              "name": "Pick Risky User",
              "description": null,
              "arguments": {
                "risk_user": "{{ ((vars.steps.List_Risky_Users.data.value | default([], true)) | selectattr('riskState', 'in', ['atRisk', 'confirmedCompromised']) | list | first | default(none, true)).userPrincipalName | default('unknown@contoso.example', true) }}",
                "risk_level": "{{ ((vars.steps.List_Risky_Users.data.value | default([], true)) | selectattr('riskState', 'in', ['atRisk', 'confirmedCompromised']) | list | first | default(none, true)).riskLevel | default('unknown', true) }}",
                "risk_summary": "{{ ((vars.steps.List_Risky_Users.data.value | default([], true)) | selectattr('riskState', 'in', ['atRisk', 'confirmedCompromised']) | list | first | default(none, true)).userPrincipalName | default('the reported user', true) }} is flagged at risk or confirmed compromised (risk level {{ ((vars.steps.List_Risky_Users.data.value | default([], true)) | selectattr('riskState', 'in', ['atRisk', 'confirmedCompromised']) | list | first | default(none, true)).riskLevel | default('unknown', true) }}) in Entra ID Protection."
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "f8af2e4f-8efb-566a-b14a-edf4b6f06007"
            },
            {
              "@type": "WorkflowStep",
              "name": "Approval",
              "description": "{{ vars.risk_summary }}<br><br>On <b>approve</b>: revoke all active sessions for {{ vars.risk_user }} and block {{ vars.reported_ip }} by appending it to the Conditional Access IP named location \"{{ vars.named_location_name }}\". On <b>reject</b>: nothing is changed and the alert is closed out with a note that the response was not approved.",
              "arguments": {
                "owner_detail": {
                  "isAssigned": false,
                  "externalRecipients": "{{ vars.approver }}"
                },
                "inputInternalUsers": true,
                "inline_channel_list": [
                  "/api/3/picklists/c7c35e25-9c26-4a43-a984-4f57d2027111"
                ],
                "unauthenticated_input": true,
                "type": "DecisionBased",
                "input": {
                  "schema": {
                    "title": "Approve compromised-user response for {{ vars.risk_user }}?",
                    "description": "{{ vars.risk_summary }}<br><br>On <b>approve</b>: revoke all active sessions for {{ vars.risk_user }} and block {{ vars.reported_ip }} by appending it to the Conditional Access IP named location \"{{ vars.named_location_name }}\". On <b>reject</b>: nothing is changed and the alert is closed out with a note that the response was not approved.",
                    "inputVariables": []
                  }
                },
                "record": "",
                "is_approval": false,
                "isRecordLinked": false,
                "step_variables": [],
                "response_mapping": {
                  "options": [
                    {
                      "option": "approve",
                      "primary": true,
                      "step_iri": "/api/3/workflow_steps/98417855-9d47-522c-9665-1eec44836f90"
                    },
                    {
                      "option": "reject",
                      "step_iri": "/api/3/workflow_steps/49493b92-852c-54ed-afcd-19da6f83e6c5"
                    }
                  ],
                  "duplicateOption": false,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully."
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": []
                },
                "external_channel_list": []
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null,
              "uuid": "0da9c13f-02da-52d8-be05-b8e9a4aad69b"
            },
            {
              "@type": "WorkflowStep",
              "name": "Revoke Sessions",
              "description": null,
              "arguments": {
                "connector": "microsoft-entra-id-v2",
                "operation": "revoke_user_sessions",
                "config": "",
                "params": {
                  "user": "{{ vars.risk_user }}"
                },
                "version": "1.0.1",
                "name": "Microsoft Entra ID v2",
                "operationTitle": "Revoke User Sessions",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "900",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "98417855-9d47-522c-9665-1eec44836f90"
            },
            {
              "@type": "WorkflowStep",
              "name": "Find Named Location",
              "description": null,
              "arguments": {
                "connector": "microsoft-entra-id-v2",
                "operation": "get_all_named_locations",
                "config": "",
                "params": {
                  "name": "{{ vars.named_location_name }}"
                },
                "version": "1.0.1",
                "name": "Microsoft Entra ID v2",
                "operationTitle": "Get All Named Locations",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "1030",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "481cc407-ec74-5a47-afa7-13f66cc2b7a8"
            },
            {
              "@type": "WorkflowStep",
              "name": "Named Location Found",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "IP named location found",
                    "condition": "{{ (vars.steps.Find_Named_Location.data.value | default([], true)) | selectattr('ipRanges', 'defined') | list | length > 0 }}",
                    "step_iri": "/api/3/workflow_steps/e2f80261-8073-5e14-bca3-3328b44a98de",
                    "step_name": "Block IPs"
                  },
                  {
                    "option": "Named location missing or not an IP location",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/52b7933a-de1a-5f4c-b313-e7880b4b13c8",
                    "step_name": "Close Out No Block"
                  }
                ]
              },
              "status": null,
              "top": "1160",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "d95ab63a-e096-5f59-a111-4bff2f93619b"
            },
            {
              "@type": "WorkflowStep",
              "name": "Block IPs",
              "description": null,
              "arguments": {
                "connector": "microsoft-entra-id-v2",
                "operation": "block_new_ips",
                "config": "",
                "params": {
                  "namedLocationID": "{{ ((vars.steps.Find_Named_Location.data.value | default([], true)) | selectattr('ipRanges', 'defined') | list | first | default(none, true)).id | default('', true) }}",
                  "ipv4Ranges": "{{ vars.reported_ip if '/' in vars.reported_ip else vars.reported_ip ~ '/32' }}",
                  "ipv6Ranges": ""
                },
                "version": "1.0.1",
                "name": "Microsoft Entra ID v2",
                "operationTitle": "Block New IP Ranges",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "1290",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "e2f80261-8073-5e14-bca3-3328b44a98de"
            },
            {
              "@type": "WorkflowStep",
              "name": "Close Out Blocked",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-api-security-v2",
                "operation": "add_alert_comment",
                "config": "",
                "params": {
                  "alertID": "{{ vars.alert_id }}",
                  "comment": "Compromised-user response (approved): revoked all active sessions for {{ vars.risk_user }} (risk level {{ vars.risk_level }}) and blocked {{ vars.reported_ip }} by appending it to the Conditional Access IP named location \"{{ vars.named_location_name }}\"."
                },
                "version": "4.0.0",
                "name": "Microsoft Graph API Security v2",
                "operationTitle": "Add Alert Comment",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "1420",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "99dd0913-c938-579a-b836-4379d8a68c59"
            },
            {
              "@type": "WorkflowStep",
              "name": "Close Out No Block",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-api-security-v2",
                "operation": "add_alert_comment",
                "config": "",
                "params": {
                  "alertID": "{{ vars.alert_id }}",
                  "comment": "Compromised-user response (approved, block skipped): revoked all active sessions for {{ vars.risk_user }} (risk level {{ vars.risk_level }}). {{ vars.reported_ip }} was NOT blocked - no IP named location named \"{{ vars.named_location_name }}\" exists (or the match is not an IP location); create it and re-run to block the IP."
                },
                "version": "4.0.0",
                "name": "Microsoft Graph API Security v2",
                "operationTitle": "Add Alert Comment",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "1290",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "52b7933a-de1a-5f4c-b313-e7880b4b13c8"
            },
            {
              "@type": "WorkflowStep",
              "name": "Close Out Rejected",
              "description": null,
              "arguments": {
                "connector": "microsoft-graph-api-security-v2",
                "operation": "add_alert_comment",
                "config": "",
                "params": {
                  "alertID": "{{ vars.alert_id }}",
                  "comment": "Compromised-user response REJECTED at approval: sessions for {{ vars.risk_user }} were NOT revoked and {{ vars.reported_ip }} was NOT blocked. The report stays with the analyst for follow-up."
                },
                "version": "4.0.0",
                "name": "Microsoft Graph API Security v2",
                "operationTitle": "Add Alert Comment",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "900",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "49493b92-852c-54ed-afcd-19da6f83e6c5"
            },
            {
              "@type": "WorkflowStep",
              "name": "Contained",
              "description": null,
              "arguments": {
                "outcome": "contained",
                "risk_user": "{{ vars.risk_user }}",
                "revoked": "{{ vars.steps.Revoke_Sessions.data.value }}",
                "blocked_ip": "{{ vars.reported_ip }}",
                "named_location": "{{ vars.steps.Block_IPs.data.displayName | default(vars.named_location_name, true) }}"
              },
              "status": null,
              "top": "1550",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "276c97c8-b3aa-5c5b-8ff8-8694c89ef4eb"
            },
            {
              "@type": "WorkflowStep",
              "name": "Contained No Block",
              "description": null,
              "arguments": {
                "outcome": "contained_no_block",
                "risk_user": "{{ vars.risk_user }}",
                "revoked": "{{ vars.steps.Revoke_Sessions.data.value }}",
                "blocked_ip": "",
                "named_location": ""
              },
              "status": null,
              "top": "1420",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "1150bcca-5dd5-5512-9358-e06a83f9e3f1"
            },
            {
              "@type": "WorkflowStep",
              "name": "Not Approved",
              "description": null,
              "arguments": {
                "outcome": "not_approved",
                "risk_user": "{{ vars.risk_user }}",
                "revoked": false,
                "blocked_ip": ""
              },
              "status": null,
              "top": "1030",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "5e42eb26-04ee-5244-9d7e-1c23d2453df2"
            },
            {
              "@type": "WorkflowStep",
              "name": "No Action",
              "description": null,
              "arguments": {
                "outcome": "no_action_taken",
                "risk_user": "",
                "revoked": false,
                "blocked_ip": ""
              },
              "status": null,
              "top": "640",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "e6551059-9a82-531c-84d2-5178cd536a02"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Resolve Inputs",
              "targetStep": "/api/3/workflow_steps/1274a58c-3e89-5532-bd99-a0c6782a4e70",
              "sourceStep": "/api/3/workflow_steps/720031af-1b3e-5ba2-908f-8b9e57f603ba",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fe7a6f4f-2557-5131-9ad8-c8df0ff1be10"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Resolve Inputs -> List Risky Users",
              "targetStep": "/api/3/workflow_steps/2edf3cb8-39bb-510c-b049-90250465d970",
              "sourceStep": "/api/3/workflow_steps/1274a58c-3e89-5532-bd99-a0c6782a4e70",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f3124704-3b74-53ad-a22a-e4897be8b6e6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "List Risky Users -> Risky Users Found",
              "targetStep": "/api/3/workflow_steps/eae67de3-b968-558d-be48-de0ba4536802",
              "sourceStep": "/api/3/workflow_steps/2edf3cb8-39bb-510c-b049-90250465d970",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2363d338-bb57-5b9d-9df7-b8ec0a09bef6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Risky Users Found -> Pick Risky User",
              "targetStep": "/api/3/workflow_steps/f8af2e4f-8efb-566a-b14a-edf4b6f06007",
              "sourceStep": "/api/3/workflow_steps/eae67de3-b968-558d-be48-de0ba4536802",
              "label": "At-risk users found",
              "isExecuted": false,
              "group": null,
              "uuid": "a6763e05-3001-516b-be7a-d908cb91742f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Risky Users Found -> No Action",
              "targetStep": "/api/3/workflow_steps/e6551059-9a82-531c-84d2-5178cd536a02",
              "sourceStep": "/api/3/workflow_steps/eae67de3-b968-558d-be48-de0ba4536802",
              "label": "Nothing actionable",
              "isExecuted": false,
              "group": null,
              "uuid": "caefccaf-0112-561e-9df4-316606eebf1c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Pick Risky User -> Approval",
              "targetStep": "/api/3/workflow_steps/0da9c13f-02da-52d8-be05-b8e9a4aad69b",
              "sourceStep": "/api/3/workflow_steps/f8af2e4f-8efb-566a-b14a-edf4b6f06007",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d2aa8f44-a827-5a73-b9ee-041336aeb6ff"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approval -> Revoke Sessions",
              "targetStep": "/api/3/workflow_steps/98417855-9d47-522c-9665-1eec44836f90",
              "sourceStep": "/api/3/workflow_steps/0da9c13f-02da-52d8-be05-b8e9a4aad69b",
              "label": "approve",
              "isExecuted": false,
              "group": null,
              "uuid": "ea968e67-1acc-52bb-bb6b-d9079c0ff187"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approval -> Close Out Rejected",
              "targetStep": "/api/3/workflow_steps/49493b92-852c-54ed-afcd-19da6f83e6c5",
              "sourceStep": "/api/3/workflow_steps/0da9c13f-02da-52d8-be05-b8e9a4aad69b",
              "label": "reject",
              "isExecuted": false,
              "group": null,
              "uuid": "65035c7b-b8ef-5d8c-843f-53fcf3ca92a8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Revoke Sessions -> Find Named Location",
              "targetStep": "/api/3/workflow_steps/481cc407-ec74-5a47-afa7-13f66cc2b7a8",
              "sourceStep": "/api/3/workflow_steps/98417855-9d47-522c-9665-1eec44836f90",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "06057656-e90d-5c83-b76d-a6ad03dac460"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Find Named Location -> Named Location Found",
              "targetStep": "/api/3/workflow_steps/d95ab63a-e096-5f59-a111-4bff2f93619b",
              "sourceStep": "/api/3/workflow_steps/481cc407-ec74-5a47-afa7-13f66cc2b7a8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "32ce44bd-34a9-505a-b49b-aca50b9845c0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Named Location Found -> Block IPs",
              "targetStep": "/api/3/workflow_steps/e2f80261-8073-5e14-bca3-3328b44a98de",
              "sourceStep": "/api/3/workflow_steps/d95ab63a-e096-5f59-a111-4bff2f93619b",
              "label": "IP named location found",
              "isExecuted": false,
              "group": null,
              "uuid": "87001c81-d0fa-5ff6-a8d2-968a571bded4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Named Location Found -> Close Out No Block",
              "targetStep": "/api/3/workflow_steps/52b7933a-de1a-5f4c-b313-e7880b4b13c8",
              "sourceStep": "/api/3/workflow_steps/d95ab63a-e096-5f59-a111-4bff2f93619b",
              "label": "Named location missing or not an IP location",
              "isExecuted": false,
              "group": null,
              "uuid": "bd2454ce-79f8-5500-a8c2-bd0c74363608"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Block IPs -> Close Out Blocked",
              "targetStep": "/api/3/workflow_steps/99dd0913-c938-579a-b836-4379d8a68c59",
              "sourceStep": "/api/3/workflow_steps/e2f80261-8073-5e14-bca3-3328b44a98de",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c43dd4c9-cb78-5a89-9bf9-1c4b67a3f620"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Close Out Blocked -> Contained",
              "targetStep": "/api/3/workflow_steps/276c97c8-b3aa-5c5b-8ff8-8694c89ef4eb",
              "sourceStep": "/api/3/workflow_steps/99dd0913-c938-579a-b836-4379d8a68c59",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1b2535c0-eb38-5c6d-b7b4-b6c51eef85ce"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Close Out No Block -> Contained No Block",
              "targetStep": "/api/3/workflow_steps/1150bcca-5dd5-5512-9358-e06a83f9e3f1",
              "sourceStep": "/api/3/workflow_steps/52b7933a-de1a-5f4c-b313-e7880b4b13c8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e0a41fe7-daaf-5490-9449-f1ce2e40c83e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Close Out Rejected -> Not Approved",
              "targetStep": "/api/3/workflow_steps/5e42eb26-04ee-5244-9d7e-1c23d2453df2",
              "sourceStep": "/api/3/workflow_steps/49493b92-852c-54ed-afcd-19da6f83e6c5",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ced84d59-3db2-5d5b-998b-e9a453b9d1df"
            }
          ],
          "groups": [
            {
              "@type": "WorkflowGroup",
              "name": "Note: List Risky Users",
              "description": "Best-effort by design: ignore_errors keeps the run alive when the tenant answers 403/404 for identityProtection (no P1 license, missing scope) - the decision below treats that as \"nothing actionable\".",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "380",
              "left": "880",
              "height": "138",
              "width": "440",
              "uuid": "7de0bc9b-b6a2-5964-95c8-d125b67dd88c",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: Pick Risky User",
              "description": "The sweep can return several at-risk users; the approval card names the first one and the response targets exactly that account. A report about a specific user passes that user in the report and the sweep confirms it is flagged.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "640",
              "left": "880",
              "height": "138",
              "width": "440",
              "uuid": "3e1c2ece-e316-5c4e-8293-ff174eb69110",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: Revoke Sessions",
              "description": "revokeSignInSessions kills every refresh/access token issued so far; the user must re-authenticate, which evicts an attacker holding a stolen session cookie.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "934",
              "left": "880",
              "height": "116",
              "width": "440",
              "uuid": "9b561d32-6db3-5b55-8d67-af53de34ed53",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: Block IPs",
              "description": "Appends the reported IP to the named location's ipRanges - existing ranges are preserved, so repeated reports accumulate in one location.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "1290",
              "left": "880",
              "height": "116",
              "width": "440",
              "uuid": "c128e297-5ce8-5030-929f-40f0c96a766b",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: Close Out No Block",
              "description": "The no-block branch still comments: sessions were revoked (the containment that matters most), but the IP could not be blocked and a human should create or fix the named location.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "1426",
              "left": "880",
              "height": "138",
              "width": "440",
              "uuid": "9cc3aacf-020e-5d8f-8870-edb294c16484",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: Contained No Block",
              "description": "Same containment minus the IP block: the close-out comment carries the \"why\" for the auditor.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "1584",
              "left": "540",
              "height": "94",
              "width": "440",
              "uuid": "725e5bd2-3b04-544f-852c-600ff4111c1c",
              "recordTags": []
            },
            {
              "@type": "WorkflowGroup",
              "name": "Note: No Action",
              "description": "Reached when the risky-user sweep returned nothing at risk (or the lookup itself was refused on this tenant) - a clean no-op, not a failure.",
              "type": "note",
              "isCollapsed": false,
              "hasTriggerStep": false,
              "hideInLogs": true,
              "metadata": [],
              "reusable": false,
              "top": "798",
              "left": "880",
              "height": "116",
              "width": "440",
              "uuid": "5acd29dd-d809-5844-9b1c-9024e0915ddf",
              "recordTags": []
            }
          ],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "e8472a72-2450-5c39-b944-8c9d6a899459",
          "isPrivate": false
        }
      ]
    }
  ]
}
