I’m struggling to properly configure SharePoint credentials in n8n and I’m not sure whether they should be set up via the Microsoft SharePoint credential or directly via Azure Entra ID (Azure AD). In both cases, the credentials can be created and validated successfully in n8n, but when I use them in my workflows, I don’t get access to the content inside SharePoint. I’m unable to list sites, document libraries, or folders, even though they already exist. I also don’t get any explicit error or logs to understand what’s failing, which makes it hard to troubleshoot. At this point, it’s unclear whether the issue comes from missing permissions, an incorrect credential type, or an additional configuration required on the SharePoint or Azure side.
Hey! Thanks for the reply. I’m now getting a 403 error. I saw a post in the community and granted the permission Directory.Read.All, but it still doesn’t work and I still can’t load the list.
Do you have any further information on what permissions/settings are required?
Is the site private and has the app been explicitly granted access to it?
That error message indicates your Azure Entra ID app doesn’t have effective permissions yet. You need to grant your App Registration direct access to the site, for example via PowerShell:
The Azure app has all the required Microsoft Graph permissions, and admin consent has been granted. However, we are still unable to connect n8n to our SharePoint.
Hi @Lucas28 ! To help you better can you share a few screenshots?
The API permissions page in Azure showing all the permissions and the admin consent status, the credential settings in n8n (with sensitive info hidden), and the full error message returned by the node, not just the 403 summary. With those three it’ll be much easier to spot what’s going on!
Hi @Lucas28
Thanks for the screenshots. This looks like the app is authenticated but not authorized for the specific SharePoint site, meaning the exact site URL. I’d confirm whether this is a private SharePoint site and make sure the app has explicit access to that exact site URL, and also verify that the permission type in Azure, Application versus Delegated, matches the OAuth flow you’re using in n8n, because a mismatch there can also result in this 403.