Description
SharePoint and OneDrive external sharing is limited to an allow list of partner domains
(SharingDomainRestrictionMode = AllowList, SharingAllowedDomainList =
{{ allowed_sharing_domains }}). Sharing with an address at any other domain is refused. The
organization-level list applies to every site and every OneDrive.
If external sharing is turned off for the whole organization, the control is met without a list.
Rationale
An allow list turns external sharing from "anyone with an email address" into "the partners we work with". It blocks sharing to personal mailboxes and to typo-squatted partner domains used in exfiltration and social engineering, and it makes each new partner a deliberate decision.
Impact
Users cannot share with a new partner until an administrator adds the domain; plan a request and approval process. Subdomains must be listed separately. When Entra B2B integration is on (CB-M365-COLLAB-002), the Entra B2B allow or deny list also applies; the more restrictive of the two wins, so keep both consistent or manage the list in Entra (CB-M365-TENANT-012).
Setting
| Location | SharePoint admin center > Policies > Sharing > More external sharing settings > Limit external sharing by domain |
| Default | Off (SharingDomainRestrictionMode = None) |
| Recommended | Allow only these domains: {{ allowed_sharing_domains }} |
Parameters
| Parameter | Baseline | Hardened | Bounds |
|---|---|---|---|
allowed_sharing_domainslist. Partner email domains that users may share with (maximum 5,000). | | |
The value used is your override (tailoring file), else the profile's, else the one of the profile it extends, else the default. Bounds limit what an override may set.
Audit
- Sign in to the SharePoint admin center (https://admin.microsoft.com/sharepoint) as at least a Global Reader.
- Browse to Policies > Sharing and expand More external sharing settings.
- Check that Limit external sharing by domain is selected with Allow only specific domains,
and compare the list with
{{ allowed_sharing_domains }}. - Read-only alternative: as a Global Reader, call Microsoft Graph
GET https://graph.microsoft.com/v1.0/admin/sharepoint/settings(permissionSharePointTenantSettings.Read.All, orGet-MgAdminSharepointSetting):sharingDomainRestrictionModemust beallowListandsharingAllowedDomainListmust contain only approved domains. With the SharePoint Online Management Shell (SharePoint Administrator):Get-SPOTenant | Select-Object SharingDomainRestrictionMode, SharingAllowedDomainList. - Fail if external sharing is allowed (
sharingCapabilitynotdisabled) and the mode is notallowList, or if the list contains a domain that is not approved.
Remediation
- Build the list from current external sharing: audit log activities
SharingInvitationCreatedandAddedToSecureLink, grouped by target domain. Have the business owners approve each domain. - In the SharePoint admin center, browse to Policies > Sharing > More external sharing settings, select Limit external sharing by domain, choose Allow only specific domains, add each domain and Save. Role: SharePoint Administrator.
- PowerShell equivalent:
Set-SPOTenant -SharingDomainRestrictionMode AllowList -SharingAllowedDomainList "partner1.example partner2.example"(space-separated). - Align the Microsoft Entra B2B collaboration restrictions (Entra ID > External Identities
External collaboration settings) with the same list.
Rollback
Run Set-SPOTenant -SharingDomainRestrictionMode None, or add the missing domain to the list.
References
- Restrict sharing of SharePoint and OneDrive content by domain Microsoft, vendor-doc, accessed 2026-10-24
- Manage sharing settings for SharePoint and OneDrive in Microsoft 365 Microsoft, vendor-doc, accessed 2026-10-24
- Set-SPOTenant (SharePoint Online Management Shell) Microsoft, vendor-doc, accessed 2026-10-24
- CISA SCuBA Microsoft SharePoint Online and OneDrive baseline CISA, standard, accessed 2026-10-24
Mappings
| Framework | ID | Relation | Note |
|---|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | AC-21 | related | |
| NIST SP 800-53 Rev. 55.1.1 | AC-4 | related | |
| CISA SCuBA Microsoft 365 Secure Configuration Baselines2.0.0 | MS.SHAREPOINT.1.3v1 | partial | SCuBA accepts approved domains or approved security groups; this control covers the domains, CB-M365-COLLAB-006 the groups. |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1567.002 |
| MITRE ATT&CK | T1530 |
Related controls
- related
CB-M365-COLLAB-002Enable SharePoint and OneDrive integration with Microsoft Entra B2B - related
CB-M365-COLLAB-003Restrict SharePoint external sharing to authenticated guests - related
CB-M365-COLLAB-006Allow only members of approved security groups to share externally Domain and group restrictions combine; SCuBA accepts either. - related
CB-M365-TENANT-012Allow guest invitations only to approved domains
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |