CIS.M365.7.2.7: Ensure link sharing is restricted in SharePoint and OneDrive
| ID | CIS.M365.7.2.7 |
| Severity | Medium |
| Suite | CIS Microsoft 365 Foundations Benchmark |
| Product | SharePoint |
| Feature | Sharing links |
| Security area | Access control |
| Resource type | Tenant |
| User impact of fixing | Low |
| Effort to fix | Low |
| Benchmark | CIS Microsoft 365 Foundations Benchmark 7.0.0, 7.2.7 (L1, E3 Level 1, E5 Level 1) |
| Framework controls | cis-m365:7.2.7nist-800-53-r5:AC-3 Access Enforcementnist-800-53-r5:AC-6 Least Privilege |
| MITRE ATT&CK | T1213.002 |
| Reads from | SharePoint Online PowerShell |
What this checks and how to fix it
Section titled “What this checks and how to fix it”7.2.7 (L1) Ensure link sharing is restricted in SharePoint and OneDrive
This setting sets the default link type that a user will see when sharing content in OneDrive or SharePoint. It does not restrict or exclude any other options. The recommended state is Specific people (only the people the user specifies) or Only people in your organization (more restrictive).
Rationale
Section titled “Rationale”By defaulting to specific people, the user will first need to consider whether or not the content being shared should be accessible by the entire organization versus select individuals. This aids in reinforcing the concept of least privilege.
Impact
Section titled “Impact”Changing the default sharing link type influences the user experience when sharing files and folders in SharePoint and OneDrive. The configured default option will appear pre-selected in the sharing dialog, guiding users toward the organization’s preferred sharing method.
Remediation
Section titled “Remediation”- Navigate to SharePoint admin center
- Click to expand Policies > Sharing.
- Scroll to File and folder links.
- Set Choose the type of link that’s selected by default when users share files and folders in SharePoint and OneDrive to Specific people (only the people the user specifies) or Only people in your organization.
PowerShell
Section titled “PowerShell”- Connect to SharePoint Online using
Connect-SPOService - Run the following command:
Set-SPOTenant -DefaultSharingLinkType Direct- Or, to set a more restrictive state:
Set-SPOTenant -DefaultSharingLinkType InternalDefault Value: Only people in your organization (Internal)
Related Links
Section titled “Related Links”Mito check, based on CIS Microsoft 365 Foundations Benchmark. Author: Mynster9361. Open-source licences.
Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).
© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.
