Prevent External Folder Sharing in OneDrive for Business
Question details
The user wants to allow selected files to be shared externally while preventing external sharing of entire folders.

- 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.
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.
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.
In the SharePoint admin center, go to Sites > Active sites, select the relevant site, and open its sharing settings.
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.
Review the organization-level and site-level external sharing settings and retain the access level needed for approved individual files.
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.

Add Microsoft Purview DLP Protection for Sensitive Files
Use DLP as an additional safeguard when sensitive information should not be shared externally.
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.

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.




