❓ Unable to Connect Microsoft SharePoint via OAuth2 – Scope Error

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 scope openid offline_access https://sharepoint.com/.default is 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:

  1. How should I pass the correct scope (i.e., openid offline_access https://company.sharepoint.com/.default) when using the built-in SharePoint credential?
  2. Is this a limitation of the built-in Microsoft SharePoint OAuth2 node?
  3. Should I switch to the OAuth2 API generic credential and use HTTP Request nodes instead?

hello @kishore_kunal

specify the company in the subdomain field

this is private information so i didn’t share, i have given the correct subdomain if that’s what you think

@kishore_kunal Already found an solution? Same issue…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.