DPDP.Sec.08.7 - Ensure SharePoint default sharing link is not set to anonymous Anyone
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.
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
- 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 Internal
Default Value: Only people in your organization (Internal)
Related Links
Test Metadata
| Field | Value |
|---|---|
| Test ID | DPDP.Sec.08.7 |
| Severity | Unknown |
| Suite | DPDP Act 2023 |
| Category | General |
| PowerShell test | Test-MtCisSpoDefaultSharingLink |
| Tags | DPDP, DPDP.Sec.06, DPDP.Sec.08, DPDP.Sec.08.7, DPDP2023 |
Source
- Pester test:
tests/dpdp/Test-MtDpdp-DataSharingAndResidency.Tests.ps1 - PowerShell source:
powershell/public/cis/Test-MtCisSpoDefaultSharingLink.ps1