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.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Email, files and Teams › SharePoint and OneDrive sharing
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
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
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.
Illustration of the two sharing sliders, shown as lists, not a screenshot.SharePoint admin center / Policies / SharingIllustrationHomeSitesPoliciesSharingAccess controlReportsPolicies › SharingExternal sharingSharePointAnyoneNew and existing guestsExisting guestsOnly people in your organizationOneDriveAnyoneNew and existing guestsExisting guestsOnly people in your organizationChange 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.
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.
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.
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.
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.
For your staff
Which link to use, and when
| Situation | Link type | Why |
|---|---|---|
| A document for one client or supplier | Specific people | Only the named person can open it, after verifying. |
| A working file for your own team | People in your organization, or the team’s site | Stays inside the company even if the link is forwarded. |
| A file for a named colleague only | Specific people | Not everyone in the company needs it. |
| A public brochure or price list | Anyone, view only, with an expiry date | Nothing sensitive, and the link ends by itself. |
| Collecting files from outside people | A file request on a dedicated folder | Uploaders cannot see each other’s files. |
| HR, payroll, legal, client records | No external sharing from that site | The site setting prevents mistakes. |
Most staff will follow whatever the Share box offers first. That is why step 2 matters more than any training: change the default and the everyday behavior changes with it.
Recommended values
Sharing settings at a glance
| Setting | Recommended value | Why |
|---|---|---|
| SharePoint external sharing | New and existing guests | Outside people must sign in or verify. |
| OneDrive external sharing | Same as SharePoint, or tighter | It cannot be more permissive than SharePoint. |
| Default link type | Specific people | The safest choice becomes the easiest. |
| Default link permission | View | Editing is chosen on purpose. |
| Anyone links, if allowed | Expire within a set number of days; view only | A forgotten link stops working. |
| Guest access expiration | On | Access ends unless renewed. |
| Guests sharing items they do not own | Off | Only your people decide who else gets access. |
| Sensitive sites | Only people in your organization, or existing guests | A 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
| Capability | License |
|---|---|
| Organization and site sharing settings, default links, expiry | Any plan with SharePoint and OneDrive |
| Audit log search for sharing activity | Microsoft 365 business and enterprise plans |
| Sensitivity labels that control sharing for a site or team | Plans with Microsoft Purview Information Protection, such as Business Premium or E3 |
| Advanced site access controls and reports | SharePoint 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.
Next in the library
Related guides
For a formal written audit of your Microsoft 365 tenant, including sharing settings, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

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.








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 serviceMicrosoft 365 migration and setup
Mail, calendars and files moved with a tested plan, secured from day one.
View service