Problem
I’m getting 403 Forbidden errors when using the SharePoint node in n8n Cloud to access our SharePoint/OneDrive files. The built-in n8n Cloud SharePoint credential connects successfully but fails on any actual data access.
Root Cause
After investigation, I found that n8n Cloud’s built-in SharePoint OAuth2 credential only has the User.Read permission. This is insufficient for accessing files, lists, or any SharePoint content.
What I’ve Tried
-
Used the default “Microsoft SharePoint OAuth2 API” credential in n8n Cloud
-
Connection shows as successful (green checkmark)
-
But any operation (Download File, Get Items, etc.) returns:
403 - Forbidden
The Issue
The SharePoint node in n8n Cloud is hardcoded to only accept n8n’s pre-built SharePoint credential, which lacks the necessary permissions.
My Workaround Attempt
I created my own Azure AD app registration with extensive permissions to rule out any permission issues:
Microsoft Graph - Delegated:
-
Files.Read.All / Files.ReadWrite.All
-
Sites.Read.All / Sites.ReadWrite.All
-
Mail.Read / Mail.ReadWrite (and variations)
-
Directory.Read.All / Directory.ReadWrite.All
-
offline_access
-
User.Read
Office 365 SharePoint Online - Delegated:
-
AllSites.Read / AllSites.Write / AllSites.Manage / AllSites.FullControl
-
MyFiles.Read / MyFiles.Write
-
Sites.Search.All
-
User.Read.All / User.ReadWrite.All
Microsoft Graph - Application (for automation):
-
Files.Read.All / Files.ReadWrite.All
-
Sites.Read.All / Sites.ReadWrite.All / Sites.Manage.All / Sites.FullControl.All
-
Mail.Read / Mail.Send
-
Directory.Read.All / Directory.ReadWrite.All
All permissions have been granted admin consent (green checkmarks in Azure AD).
However, the SharePoint node in n8n Cloud doesn’t recognize my custom OAuth2 credential - the dropdown only shows n8n’s built-in credential with insufficient permissions.
Questions
-
Is there a way to make the SharePoint node work in n8n Cloud without 403 errors?
-
Can the built-in n8n SharePoint credential be upgraded with additional permissions?
-
Is using HTTP Request nodes with Microsoft Graph API the only solution?
-
Does n8n self-hosted allow using custom OAuth2 credentials with the SharePoint node?
Environment
-
Platform: n8n Cloud
-
Node: Microsoft SharePoint
-
Tenant: Microsoft 365 Business
-
Error: 403 Forbidden on all SharePoint operations
Our use case requires multiple SharePoint operations across workflows, so switching entirely to HTTP Request nodes would be quite cumbersome. Any guidance would be greatly appreciated!