I’m currently using n8n Cloud with a connected Microsoft SharePoint OAuth2 credential.
File and folder uploads are working fine — meaning authentication and permission are set up correctly.
However, when I try to check if a file or folder already exists (for conditional branching in my workflow), I keep getting this error:
Domain not allowed: This credential (microsoftSharePointOAuth2Api) is restricted from accessing ``https://graph.microsoft.com/v1.0/sites/renewearthlabinc.sharepoint.com:/sites/RenewEarthLab.INC:/drive/root:/``... Only the following domains are allowed: graph.microsoft.com https://renewearthlabinc.sharepoint.com ...
The domain listed is already in the allowed list, but the request still fails.
This happens both with the SharePoint node and when using the HTTP Request node to call the Microsoft Graph API directly.
Since my workflow logic depends on whether a specific file or folder exists before creating or uploading new ones,
this limitation is blocking me from proceeding.
Could you please confirm:
-
Whether file/folder existence checks are supported in n8n Cloud SharePoint nodes?
-
If not, is there a recommended workaround for verifying file/folder existence within the allowed domain restrictions?
Thanks in advance for your help!