Microsoft sharepoint oauth 2 setup - insufficient parameters for OAuth2 callback

Describe the problem/error/question

I’m unable to connect to sharepoint.
The connection interface only has the option for the subdmain, but then it fails. What am I missing, and where?

What is the error message (if any)?

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).

Failed to connect. The window can be closed now.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: version 1.84.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

So we finally solved this one.
It took someone with admin rights on Microsoft.
The main issue that in the n8n documentation on this mentions that cloud users just need to provide the subdomain info.
What’s missing? the n8n.io app IS NOT INSTALLED by default on the tenant! And only the Microsoft Entra ID configuration allowed me to request the app to be installed. After that, everything worked.
So… the documentation is missing a key step: ensure that the app (n8n.io) is installed and allowed on the tenant. Note that this is different from registering an app for self hosted versions.

1 Like

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