How to find Anyone links in SharePoint and OneDrive

An Anyone link lets whoever holds the link open a file without signing in. If a link was sent to one client two years ago and never closed, it may still work today. This guide shows how to find these links and old outside guests with the tools already in Microsoft 365, and how often to check.

What an Anyone link is and why it matters

Microsoft describes an Anyone link as a link that anyone who has it can use to reach the file or folder without authenticating. When such a link is forwarded, it works for people inside and outside your company, and you cannot track who has access to the shared item or who opened it.

That is why Anyone links are the first thing to look for. Microsoft also notes that external sharing is turned on by default for your whole SharePoint and OneDrive environment, so these links can exist even if nobody planned for them.

Step 1: Check your sharing settings

Start with the rules, then look for exceptions. Microsoft's article on managing sharing settings says to open the SharePoint admin center, expand Policies, select Sharing, and look at the External sharing level for SharePoint and for OneDrive.

Know what each level allows. The Anyone level allows links that need no sign-in. New and existing guests requires people to sign in or give a verification code. Existing guests allows sharing only with guests already in your directory. Only people in your organization turns external sharing off. Each site has its own setting, but it can only be the same as or stricter than the organization setting, and the OneDrive setting can be stricter than SharePoint but not looser.

  • Write down the level set for SharePoint and for OneDrive.
  • Under the advanced settings for Anyone links, check whether links must expire and how many days that allows.
  • Check whether Anyone links are limited to view-only permission.
  • Note any sites that have their own, different setting.

Step 2: Run the built-in sharing reports

In the SharePoint admin center, expand Reports and select Data access governance. Microsoft lists two groups there. Snapshot reports show the permissions as they are today, and activity reports show what happened in the last 28 days.

Start with the site permissions report for your organization. Its downloadable CSV has a column for the number of Anyone links in each site, plus counts for guest permissions and People in your organization links. Microsoft says the first report can take up to 5 days, later ones finish within 24 hours, and you can run it again every 30 days. Then use the sharing links activity report, which lists the top 100 sites where the most new links were created, including Anyone links. It can be re-run every 24 hours.

These reports need SharePoint Advanced Management. Microsoft says you get it when at least one person in the organization has a Microsoft Copilot license, or when you buy the Plan 1 add-on. The reports cover SharePoint sites, and Microsoft documents a separate PowerShell route for OneDrive.

Step 3: Close the links you find

Microsoft's guidance for stopping sharing is short. To stop sharing with people who have an Anyone link, go to the file or folder and delete the link, or turn off Anyone links for the site. To stop sharing with guests, remove their permissions from the shared item or remove them as a guest from your directory.

For big clean-ups, Microsoft points to its Site access review feature, which asks site owners to review and update permissions. It also notes that when you restrict external sharing, guests typically lose access within one hour.

Step 4: Review the outside guests, then repeat

Microsoft says you can see the guests in your organization on the Guests page in the Microsoft 365 admin center. For each guest, ask whether the project they were invited to is still running. If not, remove them. You can also set guest access to a site or OneDrive to expire automatically after a number of days.

Microsoft recommends running the snapshot reports about every quarter and the activity reports about every month. A simple routine works well:

  • Monthly: run the sharing links activity report and close any Anyone links you do not recognize.
  • Quarterly: run the site permissions report and look at sites with many guests or many Anyone links.
  • Every time a project ends: remove the guests who were part of it.
  • Keep a note of what you found and what you closed, so you can show it later.

Where GuestPier fits

GuestPier is coming soon and is meant to automate this routine: it lists anyone links, outside guests and unused guests, lets you remove a risky share or ask the file owner, and sends a monthly report. It is built to read metadata only. We have not set a launch date, and the manual steps above work today.

Sources

Coming soon: GuestPier

See who outside your company can open your SharePoint files. GuestPier reviews Microsoft 365 external sharing: anyone links, outside guests, unused guests and widely shared items. You can remove a risky link with one click or ask the file owner to do it, and you get a monthly report. It is for small businesses and for IT firms that look after their clients' Microsoft 365.

About GuestPierPrice comparison

Get GuestPier first

Join the list and get 25% off your first purchase when it goes on sale. We email you a discount code on launch day. One code per person, for new customers.

One email when it launches (plus the discount code). No other mail, and you can say stop at any time. See our privacy policy.

An unhandled error has occurred. 🗙