Microsoft sharepoint Credentials - Error: Insufficient parameters for OAuth2 callback

Same question as: Microsoft sharepoint oauth 2 setup - insufficient parameters for OAuth2 callback However the solution offered here is not sufficient for resolving our problem.

I am om n8n cloud, trying to connect to sharepoint (i am admin in our microsoft environment). When trying to connect I get the following error message:

Error: Insufficient parameters for OAuth2 callback.
More details
Received following query parameters: {“error”:“invalid_client”,“error_description”:“AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration. Client app ID: aad843ca-42a7-4219-a3f9-91bcf621d795(n8n). Resource value from request: https://betterplaces.sharepoint.com. Resource app ID: 00000003-0000-0ff1-ce00-000000000000. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000. Trace ID: f25f5af6-477a-4e1a-bc5a-220650300f00 Correlation ID: 3aed7a10-7e37-4338-8a3a-dda88c3b2afa Timestamp: 2025-05-28 09:02:03Z”,“state”:“eyJ0b2tlbiI6IjJMZElrT2ZnLTRfa1lnYjU5NGxEOWR4SWo4YkpGSGVZX2ZpdyIsImNpZCI6IjdicEMxcVl3d21wNlFCRk0iLCJjcmVhdGVkQXQiOjE3NDg0MjI5MTk4MzUsImhvc3QiOiJiZXR0ZXJwbGFjZXMuYXBwLm44bi5jbG91ZC9yZXN0In0=”}
Failed to connect. The window can be closed now.

  • Running version [email protected]
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
  • Operating system:

The solution that was offered in the question I shared above was:
The n8n.io app IS NOT INSTALLED by default on the tenant. Ensure that the app (n8n.io) is installed and allowed in Microsoft Entra. Note that this is different from registering an app for self hosted versions.

Unfortunately there is no n8n app to be found in our Entra ID. I have looked in Microsoft Entra Gallery, as well as Enterprise applications. Searching for n8n returns nothing.

I found the solution here: Microsoft Sharepoint - OAuth Error - #2 by n8n

Can you check that you have given permission for both SharePoint API and the Graph API in your n8n app?

I had to add credentials to Microsoft Graph in n8n credentials first, when this was done I was able to connect with Sharepoint as well.

1 Like

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