File Sharing Problems

How to Fix SharePoint Refuses to Connect Error for Embedded OneDrive Files

Huma Ashraf ChHuma Ashraf Ch Nov 2, 2026 868 views

Question details

Users encounter a connection refusal message when attempting to view newly embedded OneDrive or SharePoint files.

How to Fix 'SharePoint Refuses to Connect' Error for Embedded OneDrive 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.
Before you start

Ensure you have administrator access to the SharePoint Admin Center, as resolving this issue requires modifying organization-level sharing policies.

Solution 1Recommended

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.

1
Access SharePoint Admin Center

Log in to the Microsoft 365 Admin Center using administrator credentials, then navigate to the SharePoint admin center.

2
Check Organization-Level Policies

In the left navigation pane, expand 'Policies' and select 'Sharing'. Ensure the external sharing slider for SharePoint and OneDrive is set to 'Anyone'.

3
Verify Site-Level Settings

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'.

4
Generate a New Sharing Link

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.

Enable 'Anyone' Sharing Settings in SharePoint Admin Center
Propagation Time: It may take up to an hour for new sharing policy changes to propagate fully across the Microsoft 365 tenant.
Free Microsoft Office alternative

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. 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
  2. 2. Save to WPS Cloud: Open your document, spreadsheet, or presentation and save it directly to the built-in WPS Cloud.
  3. 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.
Easily share documents via simple web links without configuring complex IT permissionsHighly compatible with Microsoft Office formats including DOCX, XLSX, and PPTXFree and lightweight suite available for Windows, Mac, Linux, iOS, and AndroidBuilt-in robust cloud storage for hassle-free file syncing and team collaboration
microsoft office alternative - wps office

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.