Skip to main content
Version: 2.1.1-preview

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

  1. Navigate to SharePoint admin center
  2. Click to expand Policies > Sharing.
  3. Scroll to File and folder links.
  4. Ensure Choose the permission that's selected by default for sharing links is set to View.

PowerShell

  1. Connect to SharePoint Online using Connect-SPOService
  2. Run the following command:
Set-SPOTenant -DefaultLinkPermission View

Default Value: DefaultLinkPermission : Edit

Test Metadata

FieldValue
Test IDDPDP.Sec.08.8
SeverityUnknown
SuiteDPDP Act 2023
CategoryGeneral
PowerShell testTest-MtCisSpoDefaultSharingLinkPermission
TagsDPDP, 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