Description
The organization-level external sharing level for OneDrive is at most {{ onedrive_sharing_level }}
and never more permissive than the SharePoint level (CB-M365-COLLAB-003). The baseline allows new
and existing guests (no Anyone links); the hardened profile turns OneDrive external sharing off
(Only people in your organization), so external collaboration happens in team sites where owners
and labels govern it.
Rationale
OneDrive holds personal working copies, often the least classified and least reviewed content in the tenant. Sharing from OneDrive bypasses site owners, site-level sharing settings and team membership reviews. Anyone links from OneDrive are a common source of data leaks. Turning OneDrive external sharing off moves external collaboration to governed sites.
Impact
In the baseline, users can still share OneDrive items with authenticated guests, but Anyone
links and File requests stop working. In the hardened profile, users cannot share OneDrive
content externally at all; existing external shares stop working. Provide a team site or a shared
channel for external projects before the change. Per-user exceptions are possible with
Set-SPOSite -Identity <OneDrive URL> -SharingCapability.
Setting
| Location | SharePoint admin center > Policies > Sharing > External sharing > OneDrive |
| Default | Anyone (ExternalUserAndGuestSharing) |
| Recommended | {{ onedrive_sharing_level }} or more restrictive |
Parameters
| Parameter | Baseline | Hardened | Bounds |
|---|---|---|---|
onedrive_sharing_levelenum. Most permissive OneDrive external sharing level allowed (OneDriveSharingCapability value). | ExternalUserSharingOnly | Disabled | one of ExternalUserSharingOnly, ExistingExternalUserSharingOnly, Disabled |
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. Under External sharing, read the OneDrive slider.
- With the SharePoint Online Management Shell (SharePoint Administrator):
Get-SPOTenant | Select-Object OneDriveSharingCapability, SharingCapability. - Optionally list OneDrive sites with a more permissive level:
Get-SPOSite -IncludePersonalSite $true -Limit All -Filter "Url -like '-my.sharepoint.com/personal/'" | Where-Object SharingCapability -ne 'Disabled'. - Fail if the OneDrive level is more permissive than
{{ onedrive_sharing_level }}(order:ExternalUserAndGuestSharing>ExternalUserSharingOnly>ExistingExternalUserSharingOnly>Disabled).
Remediation
- Identify users who share from OneDrive externally (audit log activities
SharingInvitationCreatedandAnonymousLinkCreatedon-my.sharepoint.comURLs) and agree on where external work moves. - In the SharePoint admin center, browse to Policies > Sharing and move the OneDrive slider
to the level matching
{{ onedrive_sharing_level }}. Select Save. Role: SharePoint Administrator. - PowerShell equivalent:
Set-SPOTenant -OneDriveSharingCapability {{ onedrive_sharing_level }}.
Rollback
Move the OneDrive slider back to the previous level, or grant a single user an exception with
Set-SPOSite -Identity <OneDrive URL> -SharingCapability ExternalUserSharingOnly.
References
- Manage sharing settings for SharePoint and OneDrive in Microsoft 365 Microsoft, vendor-doc, accessed 2026-10-24
- Change the external sharing setting for a user's OneDrive 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-3 | related | |
| NIST SP 800-53 Rev. 55.1.1 | AC-21 | related | |
| CISA SCuBA Microsoft 365 Secure Configuration Baselines2.0.0 | MS.SHAREPOINT.1.2v1 | looser | SCuBA requires existing guests or organization only; the hardened profile meets it, the baseline also allows new guests. |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1530 |
| MITRE ATT&CK | T1567.002 |
Related controls
- related
CB-M365-COLLAB-003Restrict SharePoint external sharing to authenticated guests - related
CB-M365-COLLAB-010Make Anyone links expire and grant view only
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |