# Manual file upload to SharePoint via Microsoft Graph API with OAuth2
This automation template enables secure, direct file uploads to SharePoint without manual intervention. Ideal for IT administrators, developers, and teams needing reliable data transfer into the Microsoft 365 ecosystem.
## Who it´s for
- SharePoint administrators automating file uploads.
- Developers integrating external systems with Microsoft 365.
- Teams requiring secure data transfer to corporate cloud storage.
## What the automation does
- Triggered manually on demand.
- Retrieves a test image from an external URL (replaceable with any file source).
- Authenticates to Azure AD using OAuth2 client_credentials flow (TENANT_ID, CLIENT_ID, CLIENT_SECRET).
- Dynamically sets target folder path and filename in SharePoint.
- Uploads the file via HTTP PUT request to Microsoft Graph API with proper authorization headers.
- Can be extended for scheduled runs (e.g., via cron trigger).
## What´s included
- Ready-to-use n8n workflow.
- Trigger and request handling logic.
- Integrations with SharePoint, Microsoft Graph, and Azure AD.
- Basic setup and adaptation guide.
## Requirements for setup
- Azure AD account with app registration rights and SharePoint access.
- Registered Azure application with Microsoft Graph API permissions.
- Credentials: TENANT_ID, CLIENT_ID, CLIENT_SECRET.
- Access to n8n platform (self-hosted or cloud).
## Benefits and outcomes
- Eliminates manual file uploads to SharePoint.
- Ensures secure, auditable data transfer.
- Serves as foundation for document management, backups, and reporting.
- Supports dynamic paths and filenames for scalability.
- Compatible with downstream automations (notifications, processing, etc.).
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet