How to Fix SharePoint Refuses to Connect Error for Embedded OneDrive Files
Question details
Users encounter a connection refusal message when attempting to view newly embedded OneDrive or SharePoint files.

- Product
- SharePoint and OneDrive
- Device & OS
- not provided
- Scenario
- Embedding a file using the embedview feature where external sharing or 'Anyone' links are used.
- Observed behavior
- A 'company SharePoint site refuses to connect' error is displayed for newly created embedded files, even though older links might still function properly.
Ensure you have administrator access to the SharePoint Admin Center, as resolving this issue requires modifying organization-level sharing policies.
Enable 'Anyone' Sharing Settings in SharePoint Admin Center
Verify and configure external sharing permissions to allow 'Anyone' links at both the organization and specific site levels.
Embedded views require proper anonymous access permissions if the target audience is external. Even if site-level permissions seem correct, they can be overridden by stricter organization-wide policies.
Log in to the Microsoft 365 Admin Center using administrator credentials, then navigate to the SharePoint admin center.
In the left navigation pane, expand 'Policies' and select 'Sharing'. Ensure the external sharing slider for SharePoint and OneDrive is set to 'Anyone'.
Go to 'Sites' > 'Active sites', select the specific site hosting the embedded file, and click 'Settings'. Under 'External file sharing', ensure it is also set to 'Anyone'.
Return to the original OneDrive or SharePoint file, click 'Share', select 'Anyone with the link can view', and copy the newly generated embed code to test the connection.

Escalate to Microsoft Support for Tenant Backend Issues
If all sharing configurations are correct but the error persists for new files, the issue likely resides in the Microsoft backend infrastructure.
Looking for a Simpler Way to Share and Collaborate on Files?
If complex SharePoint administrative settings and backend errors are disrupting your workflow, consider switching to WPS Office. It provides an intuitive, lightweight, and free alternative with seamless cloud sharing and full compatibility with Microsoft Word, Excel, and PowerPoint formats.
- 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Save to WPS Cloud: Open your document, spreadsheet, or presentation and save it directly to the built-in WPS Cloud.
- 3. Share with a Simple Link: Click the 'Share' button in the top right corner, set the link permissions to 'Anyone with the link', and instantly share the file.

Frequently Asked Questions
Why do my older SharePoint embed links still work while new ones fail?
This discrepancy typically occurs due to a recent change in your organization's tenant sharing policies, a backend synchronization delay, or a recent Microsoft update that specifically affects how newly generated embedview links are processed.
Can I embed a OneDrive file if my company disables 'Anyone' links?
If 'Anyone' links are restricted by your organization's IT policy, you cannot embed a file for public viewing. You will only be able to embed files for internal users who are authenticated, and external or unauthenticated viewers will see a connection error.
How do I create a correct embed link in OneDrive?
Select the file in OneDrive, click the 'Share' icon, click the gear icon to access link settings, choose 'Anyone with the link' (if enabled), apply the settings, and then copy the generated link to use in your iframe or embed code.




