Skip to content
itsorted.online
Apps & Tools guide

Cleaning Up "Anyone With the Link" Shares in OneDrive and Drive

An "anyone with the link" share opens a file to whoever holds the URL, with no sign-in. Forwarded emails, old WhatsApp chats and pasted links mean those files can stay open for years. The fix has three parts: find the public links that already exist, change your defaults so new shares are restricted, and set links to expire. This guide shows how to do each in Microsoft 365 (OneDrive and SharePoint) and Google Workspace, and gives a short monthly check you can hand to whoever looks after IT.

By IT Sorted teamReviewed 8 min readHow we write guides
in

Key takeaways

  • Anyone links let people open files without signing in, and forwarded links keep working.
  • SharePoint site admins can export a CSV of every file, user, permission and link on a site.
  • In SharePoint you can make Specific people the default link and force Anyone links to expire.
  • Google Workspace admins can warn users before external sharing or block link sharing outright.
  • Drive log events record visibility changes, so admins can see which files were made public.
In this guide · 8 sections
  1. 01Why "anyone with the link" sharing is risky
  2. 02Find Anyone links in SharePoint and OneDrive
  3. 03Change SharePoint and OneDrive sharing defaults
  4. 04Find and fix public links in Google Drive
  5. 05A monthly sharing-link check
  6. 06How to share with clients safely instead
  7. 07Do it yourself or get help?
  8. 08Frequently asked questions

Short answer

Run a sharing report to find Anyone links, change the default link type to Specific people or your organisation, require Anyone links to expire (for example within 30 days), and review new public shares every month.

Change SharePoint and OneDrive sharing defaults

Cleaning up once does not help if every new share is public by default. In the SharePoint admin centre, go to Policies > Sharing. Microsoft's external sharing settings page explains each option.

SettingRecommended for most SMEsWhy
External sharing levelNew and existing guests (not Anyone)Outsiders must sign in or enter a one-time code
Default link typeSpecific peopleMost restrictive; links only work for named people
Anyone link expiry (if Anyone stays on)Must expire within 30 days, for exampleOld links close themselves
Anyone link permissionsView only for files and foldersStops outsiders editing or uploading
Who can share externallyA security group of approved staffLimits external sharing to people who need it

Microsoft notes that if you shorten the expiry, existing links keep their current expiry only if it is shorter than the new setting, so a stricter rule also tightens older links. If you switch off Anyone links entirely, existing Anyone links stop working, so warn staff and clients first.

Sites can be stricter than the organisation. Put HR and finance sites on Only people in your organisation, and allow guests only on project or client sites.

How to share with clients safely instead

Staff use Anyone links because they are easy. Give them an equally easy alternative.

Safer habits

  • Share with Specific people; the client gets a one-time code
  • Use a dedicated client folder, one per client
  • Set an expiry date when sharing for a one-off review
  • Send a link to view, not edit, unless edits are needed

Habits to stop

  • Anyone links to whole department folders
  • Pasting share links into WhatsApp groups
  • Sharing a folder that later gets sensitive files
  • Leaving links open after the project ends

If you are choosing between platforms, our Google Drive vs OneDrive vs Dropbox comparison covers how each handles external sharing and guest access.

Do it yourself or get help?

A small team can run the reports and change defaults in an afternoon. The slow part is the first clean-up, when hundreds of old links need an owner's decision, and keeping the monthly review going.

Our Microsoft 365 / Google Security Lockdown (S$590) sets sharing defaults, link expiry and guest rules as part of a wider security baseline. For a repeatable monthly report of public links, guests and leavers across your tenant, see the Access Review & Leaver Tool (from S$1,200).

Frequently asked questions

Only partly. Because Anyone links do not require sign-in, Microsoft 365 and Google Workspace cannot reliably tell you which person opened the file, only that the link was used. If you need to know who accessed a file, share it with specific people so each person signs in or verifies with a code.

In SharePoint and OneDrive, turning off Anyone links at the organisation or site level stops existing Anyone links from working. People who received them will see an access error. Before you switch it off, tell staff, and reshare files that clients still need using Specific people links.

There is no single rule, but many small businesses set Anyone links to expire within 7 to 30 days, which covers sending a quote or a set of photos. Long-running client work is better handled with guest access or Specific people links, which you can remove when the project ends.

No. Any site admin can run the site sharing report, which exports every file, user, permission and link on a site or OneDrive to a CSV. SharePoint Advanced Management adds tenant-wide reports showing which sites created the most new Anyone links recently, which is useful for larger organisations.

The PDPA does not ban link sharing, but it requires reasonable security arrangements to protect personal data. Leaving files with customer or staff personal data open to anyone with a link, with no expiry, is hard to defend as reasonable. Restrict links on folders with personal data and review them regularly.

Rather have it done for you?

Fixed price, set up in your own accounts.

Order online, get a written scope, and keep full ownership of everything we set up. Questions first? Ask us in writing.