How to limit SharePoint “Anyone” links to view only

Limit "Anyone" links to view.

Every Microsoft 365 security check · Collaboration & Sharing · NL-SPO-105

What this check looks at

Where "Anyone" links are allowed, checks that links to files and to folders let people view only.

Where "Anyone" links are allowed, FileAnonymousLinkType and FolderAnonymousLinkType decide whether such links to files, and to folders, can edit. Microsoft ships both as edit.

The check reads the setting from the SharePoint admin API as ConfigCheckup Automation, only where the client granted it Sites.FullControl.All, and only ever reads it. It passes when Anyone links are not allowed, or when links to both files and folders are view only, and fails for each that can edit.

Why it matters

An "Anyone" link that can edit lets whoever holds it change, delete or replace the file with no sign-in, and an editable folder link lets them upload too: a way in for malware, and no record of who did it.

An editable Anyone link lets whoever holds it change or delete the file with no sign-in, and an editable folder link lets them upload too: a way in for malware, with no record of who it was.

CISA SCuBA MS.SHAREPOINT.3.2v1 asks for Anyone links to be view only. Collecting files from outside is better done with a file request or a signed-in guest.

How to fix it

Where: SharePoint admin centre → Policies → Sharing

Before you start

  • Ask which teams collect files from outside through editable folder links (a file request is the safer way to do that).
  • Tell users what is changing and when, with a contact for problems.

Step by step

  1. Find who collects files through Anyone links. Ask which teams receive files from outside through editable folder links, and move them to file requests or signed-in guests before the change.
  2. Tell people what changes. Tell staff, and site owners who share a lot with partners, that "Anyone" links will let people view only, the date it changes and who to ask about it.
  3. Limit Anyone links to view. In the SharePoint admin centre (https://<tenant>-admin.sharepoint.com), go to Policies > Sharing, and under "Choose expiration and permissions options for Anyone links" set Files and Folders to View. Select Save. Or: Set-SPOTenant -FileAnonymousLinkType View -FolderAnonymousLinkType View.
  4. Check it took effect. Get-SPOTenant | Select-Object FileAnonymousLinkType, FolderAnonymousLinkType shows View for both, and the next assessment passes.

With PowerShell

Connect-SPOService -Url https://<tenant>-admin.sharepoint.com
Set-SPOTenant -FileAnonymousLinkType View -FolderAnonymousLinkType View

What users will notice

"Anyone" links let people view only; collecting files from outside needs a file request or a signed-in guest.

How to confirm it worked

Get-SPOTenant | Select-Object FileAnonymousLinkType, FolderAnonymousLinkType shows View for both.

Frameworks and controls

This check maps to controls in 12 frameworks. Passing it is evidence that the setting is in place, not a certification against any of them.

The frameworks and controls NL-SPO-105 maps to
FrameworkControl
NCSC CAFB3.c Stored data
DSPTStandard 1: Personal confidential data
NIS2Art. 21(2)(i) Access control and asset management
Zero TrustData
SOC 2CC6.7 Restricting the transmission, movement and removal of information
NIST SP 800-1713.1.22 Control CUI posted or processed on publicly accessible systems
CMMC Level 2AC.L2-3.1.22 Control Public Information
ISO 27001:2022A.5.14 Information transferA.5.15 Access control
CISA SCuBAMS.SHAREPOINT.3.2v1 Link permissions limited to view only
CIS Controls v8.13.3 Configure data access control lists (IG1)
NIST CSF 2.0PR.DS-01: The confidentiality, integrity, and availability of data-at-rest are protected
NCSC 10 StepsData security

The framework mappings were last checked against the published standards in October 2026.

Further reading

The full Microsoft 365 security checklist, worst first

ConfigCheckup

Check this in every tenant.

ConfigCheckup runs this check on every tenant you connect and gives you a step-by-step fix guide. The next assessment confirms the fix.

14 days of daily monitoring and alerts, every finding with its fix guide, and reports on up to 3 tenants, from your first connected tenant. No card. Then choose the plan that fits.Where this check fits: Microsoft 365 security assessment for MSPs