Problem
I’m trying to connect to Microsoft SharePoint using the Microsoft SharePoint OAuth2 API credential in n8n, but I’m consistently running into this error during the sign-in flow:
AADSTS70011: The provided request must include a ‘scope’ input parameter.
The value for the input parameter ‘scope’ is not valid.
The scopeopenid offline_access https://sharepoint.com/.defaultis not valid.
Details:
- I’m using my actual SharePoint domain:
https://company.sharepoint.com/ - The app is registered as single-tenant in Azure.
- The n8n credential is configured with:
- Tenant ID: correct
- Client ID/Secret: correct
- Redirect URI: matches n8n domain
- However, the n8n UI for Microsoft SharePoint OAuth2 doesn’t expose a Scope field.
Questions:
- How should I pass the correct scope (i.e.,
openid offline_access https://company.sharepoint.com/.default) when using the built-in SharePoint credential? - Is this a limitation of the built-in Microsoft SharePoint OAuth2 node?
- Should I switch to the OAuth2 API generic credential and use HTTP Request nodes instead?
