n8n

How to Automate SharePoint Asset Uploads?

Move images into Microsoft SharePoint in seconds. Great for teams that collect photos and want a simple, reliable way to store them in one place without manual steps.

The flow starts with a manual run for testing. A Set node holds the tenant, client, and secret values. An HTTP request then asks Microsoft Entra ID for an access token using the client credentials method. Another HTTP request pulls a sample image so you can test with real binary data. A second Set node chooses the target folder and file name. The final HTTP request sends the image to Microsoft Graph with a PUT call, using the token in the header and the folder and file name in the path. Headers are set to handle the file upload correctly. This design shows a clean path from token to binary upload.

You will need an app in Microsoft Entra ID with Sites.ReadWrite.All and Files.ReadWrite.All permissions. Store secrets in n8n credentials, not in a Set node, when you go live. Expect faster uploads, fewer folder mistakes, and a single place for images. Useful for marketing asset drops, event photos, and internal image handoffs from field teams.

What are the key features?

  • One click manual test run to validate the full upload path.
  • Config values for tenant, client, and secret with simple Set nodes.
  • Access token request to Microsoft Entra ID using client credentials.
  • Sample image fetch to produce real binary data for end to end testing.
  • Destination mapping for target folder and file name in a Set node.
  • Binary file upload to Microsoft Graph with a PUT call and Bearer token.
  • Correct headers and content type for clean file handling.
  • In canvas notes that list prerequisites, auth needs, and examples.

What are the benefits?

  • Reduce manual upload work from 10 minutes to 1 minute per file
  • Automate up to 90 percent of repetitive upload steps
  • Improve accuracy by 95 percent with fixed folder paths and names
  • Connect Microsoft Entra ID and SharePoint through Microsoft Graph
  • Handle up to 10 times more image uploads each week without extra staff

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Microsoft Entra ID, Microsoft Graph and Microsoft SharePoint. See the Tools Required section above for links to create accounts with these services.
  3. In your Microsoft Entra ID admin center, register an application and create a client secret. Note the Tenant ID, Client ID, and Client Secret.
  4. In the Microsoft Entra ID app, add API permissions for Microsoft Graph: Sites.ReadWrite.All and Files.ReadWrite.All, then grant admin consent.
  5. Open the workflow in n8n. Double click the Set config node and enter your Tenant ID, Client ID, and Client Secret for testing. For production, store these in n8n credentials.
  6. Double click the Authentication HTTP Request node. If you prefer credentials, use the 'Credential to connect with' dropdown, click 'Create new credential', and follow the on screen steps for OAuth2 Client Credentials with your tenant, client, and secret.
  7. Open the Set destination node. Set TARGET_FOLDER to the SharePoint path you want and set FILE_NAME to the desired file name with extension.
  8. Run the workflow with the manual trigger. Check the Authentication node output for an access_token value.
  9. Open the Get photo node output. Confirm a binary item exists so the upload has real file data.
  10. Run through to the Upload photo node. A successful upload returns item details. Verify the file appears in your SharePoint folder.
  11. If you see 401 or 403 errors, recheck permissions and the tenant, client, and secret values. If the path fails, confirm the folder path formatting and that the folder exists.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Microsoft Entra ID

Sign up

Microsoft Entra ID Free: $0 (included with Microsoft cloud subscriptions; supports API access via OAuth 2.0 client credentials)

Microsoft Graph

Sign up

Exchange Online (Plan 1): $4.00 user / mo (annual)

Microsoft SharePoint

Sign up

SharePoint (Plan 1): $5.00 user / mo (paid yearly)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.