Security Policy Errors

Prevent External Folder Sharing in OneDrive for Business

Nimra MalikNimra Malik Nov 14, 2026 868 views

Question details

The user wants to allow selected files to be shared externally while preventing external sharing of entire folders.

Prevent External Folder Sharing in OneDrive for Business
Product
OneDrive for Business and SharePoint
Device & OS
not provided
Scenario
An organization needs to control external sharing at the site collection level without disabling all external file sharing.
Observed behavior
The desired outcome is for users to share approved individual files externally but not entire folders.
Before you start

Identify the OneDrive or SharePoint site collection to restrict and confirm that you have the necessary administrative permissions. Check that the organization and site sharing settings permit the intended type of external file sharing.

Solution 1Recommended

Restrict External Folder Sharing for the Site Collection

Use a folder-specific site collection restriction where available, while retaining external sharing for permitted files.

The folder restriction applies to everyone in the affected site collection, including administrators. Availability and configuration can vary, so do not assume that a general external-sharing toggle blocks folders alone.

1
Open the site settings

In the SharePoint admin center, go to Sites > Active sites, select the relevant site, and open its sharing settings.

2
Check folder restrictions

Look for an external folder-sharing restriction in the site collection settings. If it is not exposed in your tenant, consult Microsoft documentation or support for the available configuration method rather than disabling all external sharing.

3
Keep approved file sharing available

Review the organization-level and site-level external sharing settings and retain the access level needed for approved individual files.

4
Test both sharing actions

In the affected OneDrive or SharePoint site, use Share on a test folder and then on an approved test file. Confirm that external folder sharing is blocked and that the intended file-sharing option works.

Restrict External Folder Sharing for the Site Collection
Review existing access: Check existing folder permissions and sharing links separately; do not assume a new restriction automatically removes all previously granted access.
Free Microsoft Office alternative

Work on Shareable Office Files with WPS Office

WPS Office is a free, lightweight alternative for creating and editing files in a familiar interface, with Microsoft Office format compatibility for an easier transition. OneDrive and SharePoint sharing restrictions still need to be managed in Microsoft 365.

Prepare individual files for approved external sharingOpen and edit Microsoft Word, Excel, and PowerPoint formatsUse a familiar interface to ease migration from Microsoft OfficeWork with a lightweight office suite for free
microsoft office alternative - wps office

Frequently Asked Questions

Can administrators still share folders externally after the restriction is enabled?

The site collection folder restriction applies to everyone, including administrators. Test the Share action on a folder after configuring it.

Will blocking external folder sharing also block individual files?

A folder-specific restriction is intended to block folder sharing, not all file sharing. Individual file sharing must still be permitted by the organization and site sharing settings.

Can DLP replace a folder-sharing restriction?

No. Microsoft Purview DLP can restrict sharing based on sensitive content and policy conditions, but it does not by itself provide a blanket block on external folder sharing.

Where can I review a SharePoint site's external sharing settings?

In the SharePoint admin center, go to Sites > Active sites, select the site, and open its sharing settings. Check the organization-level sharing settings as well.

Does the restriction remove existing external access?

Do not assume it does. Review the folder's existing permissions and sharing links, and remove access separately where necessary.