markusmcnugen/SharePoint Mirror Sync
Sync a whole repo, specific extensions, or files to a Sharepoint site using glob patterns with a client ID and secret
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| file_path | Source file path (glob ok) | yes | — |
| site_name | Sharepoint site name (see README.md) | yes | — |
| host_name | Sharepoint host name (see README.md) | yes | — |
| upload_path | Target upload path (see README.md) | yes | — |
| tenant_id | Sharepoint tenant ID | yes | — |
| client_id | Sharepoint client ID | yes | — |
| client_secret | Sharepoint client secret | yes | — |
| max_retries | Max retries for upload | no | 3 |
| login_endpoint | Microsoft Online Login API Endpoint (see README.md) | no | login.microsoftonline.com |
| graph_endpoint | Microsoft Graph API Endpoint (see README.md) | no | graph.microsoft.com |
| file_path_recursive_match | Find files recursively in subdirectories specified in file_path | no | false |
| force_upload | Force upload all files regardless of changes (skips smart sync comparison) | no | false |
| convert_md_to_html | Convert Markdown files to HTML with Mermaid diagrams as SVG (best for SharePoint viewing) | no | true |
| force_md_to_html_regeneration | Force regeneration of HTML from .md files even if source unchanged (requires convert_md_to_html=true) | no | false |
| exclude_patterns | Comma-separated list of exclusion patterns (e.g., "*.pyc,__pycache__,*.log") | no | "" |
| sync_delete | Delete SharePoint files that no longer exist in the repository (mirror sync) | no | false |
| sync_delete_whatif | Preview deletions without actually deleting (requires sync_delete=true) | no | true |
| max_upload_workers | Maximum concurrent upload workers (1-10, default: 4 for Graph API limits). WARNING: Starting Sept 30, 2025, Microsoft will reduce per-app throttling to HALF the tenant limit. | no | 4 |
| debug | Enable general debug output (execution flow, decisions, file processing) | no | false |
| debug_metadata | Enable metadata-specific debug output (Graph API fields, column verification) | no | false |
Outputs
| name | description |
|---|---|
| return | Function output |