Library

Guides Quick Fixes Scripts Find a Guide

Tools

Error Decoder Assessment Baselines Free Tools Service status What's Changed

More

AI Certifications For MSPs Recommended Gear Field Kit FAQ About Contact Get Assessment

Lock Down SharePoint and OneDrive External Sharing

EntraReady Guides · Practical Microsoft 365 & Entra ID
Last reviewed:
Last verified against Microsoft Learn:

Most accidental data exposure in Microsoft 365 is a sharing link, not a hack. SharePoint and OneDrive sharing is set at the organization level, and each site can only be the same or stricter. This guide picks a sensible organization level, limits Anyone links, sets the default link type, and opens sharing only on the sites that need it.

Before you start

Step by step

  1. Set the organization level. In the SharePoint admin center, go to Policies > Sharing and set the External sharing level for SharePoint and for OneDrive. The OneDrive setting can be stricter than SharePoint but not more permissive (Organization-level setting (opens in a new tab)). New and existing guests requires people to sign in or use a verification code; Existing guests only allows guests already in your directory (External sharing options (opens in a new tab)).
  2. If you keep Anyone links, limit them. Require Anyone links to expire within a set number of days and restrict them to View (Advanced settings for Anyone links (opens in a new tab)).
  3. Set the default link type. Under File and folder links, choose Specific people (most restrictive) or Only people in your organization instead of Anyone with the link (More external sharing settings (opens in a new tab)).
  4. Add guardrails. Under More external sharing settings, you can limit sharing to listed domains (up to 5,000), allow only specific security groups to share externally, and make guest access to a site or OneDrive expire after a number of days (More external sharing settings (opens in a new tab)).
  5. Open up per site. In Active sites, select a site, then Settings > More sharing settings, and pick a level up to the organization’s. You can also set domain limits, guest expiration and default links per site (Change a site’s setting (opens in a new tab)).

Gotchas

Check it worked

Roll back

Set the organization or site sharing level back to the previous option and save. Remember that loosening sharing again can restore guests’ access to content they had before (External sharing options note (opens in a new tab)).

Related on EntraReady: Guest access cleanup, Teams external access vs guest access, Guest access reviews, and Cross-tenant access settings.

Sources (Microsoft Learn): Manage sharing settings for SharePoint and OneDrive (opens in a new tab), Change the sharing settings for a site (opens in a new tab).

← All Guides

Is this still accurate?

Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.

Reports go to the EntraReady inbox. Please don’t include passwords or tenant secrets.