{
  "name": "Audit Confluence space permissions and public links for compliance",
  "nodes": [
    {
      "id": "d3b5305d-3096-48e0-8bcf-25d821cb1eb2",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1200,
        -288
      ]
    },
    {
      "id": "9b661e69-3b88-400f-94be-b265c16ee0f2",
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -976,
        -288
      ]
    },
    {
      "id": "ea0116b4-db91-4e07-99c3-1d71aadcf4ce",
      "name": "Confluence - GQL Space Anonymous Access",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -304,
        -480
      ]
    },
    {
      "id": "87456de1-b701-44d6-ab13-cb6d9e6a508b",
      "name": "Split Out Spaces",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -528,
        -288
      ]
    },
    {
      "id": "41b8829b-43f5-40b3-a899-ef39eb2a1c82",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -608
      ],
      "parameters": {
        "width": 416,
        "height": 176,
        "content": "## Confluence API Reference\n* [V2 Get Spaces](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get)\n\n## Atlassian GraphQL API Reference\n* [GraphQL API](https://deve"
      }
    },
    {
      "id": "f95c8e6a-1352-4732-8530-aee6d963b5a3",
      "name": "Confluence - GQL Space Public Links Enabled",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -304,
        -288
      ]
    },
    {
      "id": "f6e09ea9-fd84-41ab-9913-0e51ef17c462",
      "name": "Confluence - GQL Space Pages with Public Link",
      "type": "n8n-nodes-base.graphql",
      "position": [
        -304,
        -96
      ]
    },
    {
      "id": "b10d93b6-6ac8-4354-9d5e-d8873ceb6456",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        144,
        -304
      ]
    },
    {
      "id": "03305bb6-7859-4230-924f-646be6281e2a",
      "name": "Set Anonymous Access",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -480
      ]
    },
    {
      "id": "a9b2fd3c-2832-4808-94bd-d162c599b8a7",
      "name": "Set Space Public Links Enabled",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -288
      ]
    },
    {
      "id": "a81ca969-1fdd-4098-8cd5-39a59f41cb9b",
      "name": "Set Space Pages with Public Link",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        -96
      ]
    },
    {
      "id": "6a6a72e0-d94a-419e-9247-5acac4f481ea",
      "name": "Confluence - Get Spaces",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -752,
        -288
      ]
    },
    {
      "id": "ed46e380-27a3-4ece-9bc6-d6816b20fb23",
      "name": "Build Report",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        -288
      ]
    },
    {
      "id": "21685f3c-5e89-4bcc-b9ae-70145229e033",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        -592
      ],
      "parameters": {
        "width": 464,
        "height": 672,
        "content": "## Atlassian GraphQL\nChecks for Anonymous access, public links enabled and pages with public links"
      }
    },
    {
      "id": "40e120ea-a9da-4454-99eb-e5dd43701085",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        -16
      ],
      "parameters": {
        "width": 752,
        "height": 144,
        "content": "### Notes\n- Uses **Atlassian GraphQL API**\n- Pages with blocked links are still included for visibility.\n- Current GraphQL page query fetches up to **250 pages per space**.\n- Need help? ✉️ **office@su"
      }
    },
    {
      "id": "dfc2bba5-c267-49b7-8899-616ffcb0217d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2016,
        -608
      ],
      "parameters": {
        "width": 752,
        "height": 576,
        "content": "## How it works\nThis workflow audits Confluence spaces for public exposure risks, focusing on anonymous access and public links. A **Set Variables** node defines the Atlassian domain and the list of s"
      }
    },
    {
      "id": "5706378f-31ba-4c80-9a64-1a508f7bcc5c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        -352
      ],
      "parameters": {
        "width": 416,
        "height": 224,
        "content": "## Confluence API v2"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Build Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Report": {
      "main": [
        []
      ]
    },
    "Set Variables": {
      "main": [
        [
          {
            "node": "Confluence - Get Spaces",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Spaces": {
      "main": [
        [
          {
            "node": "Confluence - GQL Space Pages with Public Link",
            "type": "main",
            "index": 0
          },
          {
            "node": "Confluence - GQL Space Public Links Enabled",
            "type": "main",
            "index": 0
          },
          {
            "node": "Confluence - GQL Space Anonymous Access",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Anonymous Access": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confluence - Get Spaces": {
      "main": [
        [
          {
            "node": "Split Out Spaces",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Space Public Links Enabled": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Set Space Pages with Public Link": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confluence - GQL Space Anonymous Access": {
      "main": [
        [
          {
            "node": "Set Anonymous Access",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confluence - GQL Space Public Links Enabled": {
      "main": [
        [
          {
            "node": "Set Space Public Links Enabled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confluence - GQL Space Pages with Public Link": {
      "main": [
        [
          {
            "node": "Set Space Pages with Public Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}