Microsoft 365 Best Practices Library · Email, files and Teams

SharePoint and OneDrive sharing security guide

Sharing a file from SharePoint or OneDrive takes two clicks, and by default the link can be one that anyone can open without signing in. This guide shows how to set the sharing level for your whole organization, choose a safer default link, make guest access expire, tighten the sites that hold sensitive files, and find what has already been shared.

Prefer to have it done for you? IT Perfection provides Microsoft 365 security hardening for companies in Irvine, Orange County and Los Angeles County.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Leadership meeting at a conference table
1 · ReviewWe check the sharing level, the default link and what is already shared.

Microsoft 365 Best Practices Library › Email, files and Teams › SharePoint and OneDrive sharing

What it isThe settings that decide who outside your organization can be given access to files and sites, and what kind of link staff create by default.
Where it livesSharePoint admin center › Policies › Sharing
License neededNone beyond a plan that includes SharePoint and OneDrive. Sensitivity labels and some site-level controls need higher plans.
Time to set upAbout an hour for the organization settings; longer to review existing shared links.
Risk if missingHigh An “anyone with the link” link works for whoever receives it, forwards it or finds it, with no sign-in and no record of who opened the file.

Why it matters

The easiest link to create is the hardest to control

Sharing is the reason these tools exist, and most of it is harmless. The risk is concentrated in one kind of link. An Anyone link opens the file for any person who has it, with no sign-in. It can be forwarded, pasted into a chat or left in an old email thread, and it goes on working. Microsoft says plainly that with this kind of link you cannot track who has access to shared items or who has accessed them.

The other kinds of sharing ask the recipient to prove who they are, either by signing in or by entering a code sent to their email address. Access is then tied to a person, shows up in the audit log, and can be taken away. The work in this guide is mostly about moving everyday sharing from the first kind to the second, without making it harder for staff to do their jobs.

Two more things make sharing drift over time. Access given to an outside person rarely expires by itself, and each site and each person’s OneDrive can hold years of old links. So the settings come first, and a clean-up of what already exists comes second.

Before you start

What to have ready

The right roleSharePoint Administrator, to change organization-level and site-level sharing settings.
How the business really sharesAsk each department: who do you send files to outside the company, and how? Some teams depend on open links for forms or large file drops.
A list of sensitive sitesHR, finance, legal, client records. These will get tighter settings than the rest.
A short guide for staffOne page: which link to use for a client, a colleague and a public document. Send it the day you change the default.

SharePoint and OneDrive sharing also depends on the guest settings in Microsoft Entra ID. Microsoft notes that the Entra external collaboration settings determine who can invite guests for site sharing, so review the two together.

Step by step

Secure sharing in six steps

  1. Set the organization-level sharing level

    SharePoint admin center › Policies › Sharing › External sharing

    There are two sliders, one for SharePoint and one for OneDrive. For most small and mid-sized organizations New and existing guests is the right level for both: outside people can be given access, but they must sign in or verify with a code. Choose Anyone only if you have a real need for links that work without sign-in, and then restrict it in step 3. Each site can later be set to the same level or tighter, never looser.

  2. Change the default link type

    SharePoint admin center › Policies › Sharing › File and folder links

    This is the option that is pre-selected when someone selects Share. Set it to Specific people, or to Only people in your organization if your teams share widely inside the company and rarely outside. Staff can still choose another type that your sharing level allows; the default simply makes the safer choice the easy one. Set the default permission to View so that editing is a deliberate choice.

  3. If Anyone links are allowed, limit them

    SharePoint admin center › Policies › Sharing › Advanced settings for Anyone links

    Require these links to expire and set a maximum number of days, and restrict them to View permission for files and folders where you can. Note that the file request feature, where outside people upload files to a folder, needs Anyone links with edit or upload permission; if a team relies on it, allow it deliberately for them and not by accident for everyone.

  4. Set the other external sharing options

    SharePoint admin center › Policies › Sharing › More external sharing settings

    Turn on Guest access to a site or OneDrive will expire automatically after this many days, so that access ends unless someone renews it. Set People who use a verification code must reauthenticate after this many days. Leave Allow guests to share items they don’t own off. If you work with a known set of partners, Limit external sharing by domain lets you allow only their domains, or block specific ones.

  5. Tighten the sensitive sites

    SharePoint admin center › Sites › Active sites › select the site › Settings › External file sharing

    For sites such as HR, finance or legal, set external sharing to Only people in your organization, or to Existing guests if a named outside adviser needs access. A site can always be more restrictive than the organization setting. Teams-connected sites are covered too: the SharePoint setting applies to sites connected to Microsoft 365 groups and teams.

  6. Review what is already shared

    Site or OneDrive › Settings › Site usage › Shared with external users; Microsoft Purview portal › Audit

    New settings do not remove old links. Each site’s usage page lists files shared with external users, and a OneDrive owner can see their own shared items under Shared. For the whole tenant, search the audit log for sharing activities such as anonymous link creation. Start with the sensitive sites and with the OneDrive accounts of people who have left. Remove links that are no longer needed, and tell owners what you removed.

Recommended values

Sharing settings at a glance

SettingRecommended valueWhy
SharePoint external sharingNew and existing guestsOutside people must sign in or verify.
OneDrive external sharingSame as SharePoint, or tighterIt cannot be more permissive than SharePoint.
Default link typeSpecific peopleThe safest choice becomes the easiest.
Default link permissionViewEditing is chosen on purpose.
Anyone links, if allowedExpire within a set number of days; view onlyA forgotten link stops working.
Guest access expirationOnAccess ends unless renewed.
Guests sharing items they do not ownOffOnly your people decide who else gets access.
Sensitive sitesOnly people in your organization, or existing guestsA second barrier where mistakes cost most.

The number of days for expiry is a business choice. Thirty to ninety days suits most project work; pick a figure your teams can live with and write it down.

Check that it works

How to confirm the result

  • The Share box offers the new default. Open a file as a normal user and select Share; the pre-selected option matches step 2.
  • An outside recipient has to verify. Share a test file with a personal address and open it in a private browser window; you are asked to sign in or enter a code.
  • A sensitive site refuses outside sharing. Try to share a file from it with an outside address; the option is unavailable or refused.
  • Anyone links, if allowed, show an expiry date. Create one and check the date.
  • The record is saved. Keep the chosen values, the list of sensitive sites and the date with your IT records.

Mistakes and rollback

Common mistakes, and how to step back

  • Turning external sharing off completely. Staff still need to send files, and go back to email attachments or personal cloud accounts, where you can see nothing.
  • Changing the setting without telling anyone. Links stop being offered and people assume something is broken.
  • Forgetting OneDrive. Each person’s OneDrive is where most ad hoc sharing happens.
  • Fixing settings but not old links. Years of existing links keep working.
  • Leaving leavers’ OneDrive shared. Files a former employee shared remain shared until the account is cleaned up or deleted.
  • Treating site settings as optional. The organization level is a ceiling; sensitive sites need their own, lower one.

To roll back: sharing settings can be set back at any time. Be aware of one behavior Microsoft documents: if you turn external sharing off and later turn it back on, guests regain the access they had. When you restrict sharing, guests typically lose access within about an hour.

Licenses

Which plan gives you what

CapabilityLicense
Organization and site sharing settings, default links, expiryAny plan with SharePoint and OneDrive
Audit log search for sharing activityMicrosoft 365 business and enterprise plans
Sensitivity labels that control sharing for a site or teamPlans with Microsoft Purview Information Protection, such as Business Premium or E3
Advanced site access controls and reportsSharePoint Advanced Management, or plans that include it

Plans and names change; check Microsoft’s current service descriptions before you buy anything.

Have us do it

Prefer to hand this off?

IT Perfection reviews SharePoint and OneDrive sharing for companies in Irvine, Orange County and Los Angeles County: organization and site settings, a safer default link, expiry rules, a review of existing outside sharing, and a one-page guide for your staff. You receive a written scope and a written quote before any work starts.

Ali Hassani, CISSP and Certified CISO, IT Perfection

Who does the work

Written by Ali Hassani, CISSP, C|CISO

Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.

This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

FAQ

SharePoint and OneDrive sharing: common questions

What is the safest external sharing setting for SharePoint and OneDrive?

For most organizations, New and existing guests: outside people can be given access but must sign in or verify with a code. Only people in your organization is safest of all but blocks legitimate work, which often pushes staff to less visible tools.

What is an Anyone link?

An Anyone link lets any person who has the link open the file or folder without signing in. It can be forwarded freely, and you cannot see who used it. If you allow these links, set them to expire and to view only.

Can OneDrive be more open than SharePoint?

No. The OneDrive sharing level can be the same as the SharePoint level or more restrictive, but not more permissive.

How do I change the default sharing link?

In the SharePoint admin center, open Policies, then Sharing, and under File and folder links choose Specific people or Only people in your organization as the default.

Does changing sharing settings remove existing links?

Restricting the sharing level stops guests’ access, typically within about an hour. Old links are not deleted, and if sharing is turned back on later, guests regain access, so review and remove old links as a separate task.

How do I see what has been shared externally?

Each site has a usage page listing files shared with external users, OneDrive owners can see their shared items, and the Microsoft 365 audit log can be searched for sharing activity across the tenant.

Need this done for your business?

IT Perfection plans, installs and supports this for companies in Irvine and Orange County

The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.

Microsoft 365 managed services

Exchange, Teams, SharePoint and OneDrive run and secured for you.

View service

Microsoft 365 migration and setup

Mail, calendars and files moved with a tested plan, secured from day one.

View service

SPF, DKIM and DMARC setup

Email authentication set up so your domain cannot be spoofed.

View service