Block 1 - When clicking ‘Execute workflow’
- Type / Role
- n8n-nodes-base.manualTrigger - manualTrigger
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
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 an...
n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.executeworkflow, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alexander Schnabl.
Original n8n.io sourceThis 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 traverse SharePoint recursively, giving you full visibility into sharing across all sites, document libraries, folders and files.
Scans all SharePoint sites in the tenant.
Traverses SharePoint recursively through every folder and file, starting at the root of each drive.
Fetches permissions for every item (files and folders).
Detects and flags:
Anonymous sharing links (anyone links)
External or guest users, identified by:
#ext#, urn:spo:guest)Outputs only items that are externally shared, including detailed metadata and permission evidence.
In the Set Variables node you define your internal tenantDomains, used to distinguish internal users from external ones.
Microsoft Graph is used to:
Each drive triggers a recursive subworkflow that:
For every discovered item:
A custom filtering step analyzes permissions and:
The final output is a clean, normalized list of externally shared SharePoint items, enriched with:
Create a Microsoft Entra ID (Azure AD) App Registration.
Grant Microsoft Graph – Application permissions:
Sites.Read.AllConfigure an OAuth2 Client Credentials credential in n8n and assign it to all HTTP Request nodes.
Update the Set Variables node:
yourDomain.onmicrosoft.com, yourDomain.com)Run the workflow manually or attach a Schedule Trigger for recurring audits.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.
| Workflow | Audit SharePoint Online external sharing and anonymous links with Microsoft Graph |
|---|---|
| Complexity | advanced |
| Nodes | 31 |
| Categories | Document Extraction, AI Summarization |
| Author | Alexander Schnabl |
| Published | 05 Jan 2026 |
Use the JSON export at /data/workflows/12495/12495.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 an...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.