Audit SharePoint Online external sharing and anonymous links with Microsoft Graph
Ready for 3.0What this workflow does
This workflow has 22 nodes and runs when another workflow calls it (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls graph.microsoft.com over HTTP.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- If: checks a condition and branches into true / false
- Set Variables (Edit Fields (Set)): sets 1 field: tenantDomains
- SharePoint - Get Child Items (HTTP Request): calls an HTTP API
- SharePoint - Get Items (HTTP Request): calls an HTTP API
- Sharepoint - Get Sites (HTTP Request): calls graph.microsoft.com
- Split Out: splits a list into separate items
- Split Out: splits a list into separate items
- If: checks a condition and branches into true / false
- Filter: keeps only the items that match a condition
- Keept Items and Folders (Merge): merges the data from its input branches
…plus 10 more steps. See the full node list below.
HTTP calls to: graph.microsoft.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Filter
n8n-nodes-base.filter
From the author
Audit external sharing in SharePoint to ensure compliance This workflow audits your SharePoint Online environment for external sharing risks by identifying files and folders that are shared with anonymous links or external/guest users. It is designed to…