DPDP.Sec.08.8 - Ensure default sharing link permissions are restricted to View Only
Overview
7.2.11 (L1) Ensure the SharePoint default sharing link permission is set
This setting configures the permission that is selected by default for sharing link from a SharePoint site.
The recommended state is View.
Rationale
Setting the view permission as the default ensures that users must deliberately select the edit permission when sharing a link. This approach reduces the risk of unintentionally granting edit privileges to a resource that only requires read access, supporting the principle of least privilege.
Impact
Not applicable.
Remediation
- Navigate to SharePoint admin center
- Click to expand Policies > Sharing.
- Scroll to File and folder links.
- Ensure Choose the permission that's selected by default for sharing links is set to View.
PowerShell
- Connect to SharePoint Online using
Connect-SPOService - Run the following command:
Set-SPOTenant -DefaultLinkPermission View
Default Value: DefaultLinkPermission : Edit
Related Links
- Manage sharing settings for SharePoint and OneDrive in Microsoft 365
- CIS Microsoft 365 Foundations Benchmark v6.0.1 - Page 391
Test Metadata
| Field | Value |
|---|---|
| Test ID | DPDP.Sec.08.8 |
| Severity | Unknown |
| Suite | DPDP Act 2023 |
| Category | General |
| PowerShell test | Test-MtCisSpoDefaultSharingLinkPermission |
| Tags | DPDP, DPDP.Sec.06, DPDP.Sec.08, DPDP.Sec.08.8, DPDP2023 |
Source
- Pester test:
tests/dpdp/Test-MtDpdp-DataSharingAndResidency.Tests.ps1 - PowerShell source:
powershell/public/cis/Test-MtCisSpoDefaultSharingLinkPermission.ps1