How to connect to sharepoint using n8n work flow node

Hi Team,

im trying to connect to microsoft share point through my company mail account , using n8n Http request node added Oauth2 credentials using clientid, client secret, tenantid not able to connect getting site cant be reached.
https://192.168.1.118/workflow_engine_api/rest/oauth2-credential/callback?error=invalid_client&error_description=AADSTS650057%3A+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%3A+797a9059-9815-451f-8cf9-73d161d7e46d(n8n-SharePoint-Connector).+Resource+value+from+request%3A+https%3A%2F%2F4024651c-4d42-4da7-902f-b7a65d46ec9c.sharepoint.com.+Resource+app+ID%3A+00000003-0000-0ff1-ce00-000000000000.+List+of+valid+resources+from+app+registration%3A+00000003-0000-0000-c000-000000000000.+Trace+ID%3A+0439c36f-fbbc-4f44-996e-815674de1100+Correlation+ID%3A+b728ae20-41bf-43fe-b966-9b0bdec6db6d+Timestamp%3A+2024-11-19+11%3A41%3A24Z&state=eyJ0b2tlbiI6IkdCb3NJY1RyLU5EbFg1MmpWdjU5QTFmZXh2SmFBbml5RnloZyIsImNpZCI6IjQxIn0%3D#

Describe the problem/error/question

What is the error message (if any)?

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:0.233.1
  • Database (default: SQLite):Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system:Windows, linux

Hi @udaykumaracro,

The error message indicates that you are attempting to access a resource that your app doesn’t have the necessary permissions for. To resolve this, you’ll need to update your app’s permissions in Azure.

Here’s how:

  1. Visit Azure App Registrations.
  2. Select your app and navigate to API Permissions.
  3. Add the required permissions for the resource you’re trying to access.

For more detailed help, check out this Microsoft documentation.

If you need additional assistance, sharing an example workflow or steps to reproduce the issue would be helpful for debugging.

Hope this helps!

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