Skip to main content
Version: 3.0.0-preview

CIS.M365.7.2.7 - (L1) Ensure link sharing is restricted in SharePoint and OneDrive

Overviewโ€‹

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โ€‹

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โ€‹

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.

October 2026 service change: Microsoft is retiring SharePoint one-time passcode (OTP) authentication for commercial tenants. As retirement reaches a tenant, external users without a matching Microsoft Entra B2B guest account can lose access to previously shared Specific people links. Changing the default link type affects new links; it does not repair access to existing links. To restore access, create a matching guest account or share or reshare at least one item or site with that person. Microsoft Entra B2B email OTP remains supported.

Remediationโ€‹

  1. Navigate to SharePoint admin center
  2. Click to expand Policies > Sharing.
  3. Scroll to File and folder links.
  4. 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โ€‹

  1. Connect to SharePoint Online using Connect-SPOService
  2. Run the following command:
Set-SPOTenant -DefaultSharingLinkType Direct
  1. Or, to set a more restrictive state:
Set-SPOTenant -DefaultSharingLinkType Internal

Default Value: Only people in your organization (Internal)

Test Metadataโ€‹

FieldValue
Test IDCIS.M365.7.2.7
SeverityMedium
SuiteCIS
ProductSharePoint
FeatureSharing links
AreaAccess control
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1213.002 Sharepoint
Supports benchmarkCIS Microsoft 365 Foundations Benchmark (version 7.0.0), requirement 7.2.7
Benchmark levelL1
Benchmark profilesE3 Level 1, E5 Level 1
Supports controlscis-m365:7.2.7, nist-800-53-r5:AC-3, nist-800-53-r5:AC-6
PowerShell testTest-MtCisSpoDefaultSharingLink
ServicesSharePointOnline

Sourceโ€‹