Microsoft Sharepoint - OAuth Error

Hi everyone, new to n8n. :slight_smile:

I’m running into an error when I try to add Microsoft Sharepoint credentials via OAuth. I changed the actual tenant name to ‘test’.

The error I get:

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://test.sharepoint.com. Resource app ID: 00000003-0000-0ff1-ce00-000000000000. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000. Trace ID: 05edad25-445c-4a58-bfb0-d35597173700 Correlation ID: c7cbc7c7-977b-46c4-be8c-7750461709f2 Timestamp: 2025-01-30 08:58:04Z”,“state”:“eyJ0b2tlbiI6Im9EaGdJdTc3LTRXX0RwVzVIRXpwRkN6RFBQZ0xqelY5YU1tOCIsImNpZCI6InN3R3FRaFpwaE04QUYwc1QiLCJjcmVhdGVkQXQiOjE3MzgyMjc0ODQxMzYsImhvc3QiOiJ0b20tYWVyYS1haS5hcHAubjhuLmNsb3VkL3Jlc3QifQ==”}


I should be able to do this since I got an admin account.
I also made sure that I only entered the required tenant subdomain.

Really appreciate any help guys. Cheers

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: cloud 1.76.1
  • Database (default: SQLite): don’t know
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):**don’t know
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: mac os

Hi @tom-aera

Thanks for posting here and welcome to the community! :cake:

I’m no expert with Azure at all, but looking at the error, you seem to be missing a specific permission in your Azure AD (permission for the resource with ID 00000003-0000-0ff1-ce00-000000000000)

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

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