I want to do something that should be in theory “simple” but after trying for 2 days I simply cannot find a way.
I just want to read data from a business SharePoint. The current set up is as follows:
My corporate account [email protected] has access to said SharePoint.
The account in which n8n is registered is a public one [email protected]
I have tested with HTTP node, HTTP SharePoint node, read through MS Graph API docs, watch tutorial videos, read through all posts that were even remotely similar in the community, but I still cannot crack this nut.
Accessing the files under my corporate account “[email protected]” works fine.
What is the error message (if any)?
I have been getting different errors at different stages of the processes. From things like “Forbidden: check your credentials” to missing refresh tokens.
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: 1.91.3
Database (default: SQLite): SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
Have you created the requisite app registration within Entra on MS admin, with delegated permissions and whatnot? You’ll need to make sure you’ve granted delegated permissions to the correct scopes. I use the graph api to pull data out of sharepoint excel files using this.
In n8n itself, make sure your scopes for your MS Oauth2 credentials setup are space-separated.
I am trying to do this now and I’m having the same problem - I have created my credential as OAuth2 API, I have the app set up in Azure - and I think I need to play around with the permissions there from the sound of it. But at this stage, nothing seems to be working so would appreciate any advice