[n8n Cloud] SharePoint OAuth Credential – “Domain not allowed” error

“I’m getting a ‘Domain not allowed’ error even though I’ve whitelisted Sign in to your account * and graph.microsoft.com/v1.0/sites/*. The error is blocking access to a Graph API URL that includes the SharePoint site path. Please help to extend the system-level whitelisting for this pattern.”

Domain not allowed: This credential (microsoftOAuth2Api) is restricted from accessing ``https://graph.microsoft.com/v1.0/sites/renewearthlabinc.sharepoint.com:/sites/RenewEarthLab.INC``. Only the following domains are allowed: ``graph.microsoft.com`` ``renewearthlabinc.sharepoint.com Sign in to your account * renewearthlabinc.sharepoint.com/_api/*

hello @handokei

That’s not the right endpoints. Check the docs for the correct syntax

Working with SharePoint sites in Microsoft Graph - Microsoft Graph v1.0 | Microsoft Learn