SharePoint sharing link expiration
As of November 2026, an administrator can require Anyone links to expire and choose the maximum number of days. Guest access to a site or OneDrive has a separate expiration setting.
How do you reach the setting?
- In the SharePoint admin center, expand Policies, then select Sharing.
- Under External sharing, pick Anyone for SharePoint.
- Expand More external sharing settings.
- Find Advanced settings for Anyone links and set the link expiration.
- Select Save.
Where is link expiration set?
The option exists only when the external sharing level is set to Anyone.
Which sharing level allows what?
| Level | What it allows |
|---|---|
| Anyone | Links open without signing in. Links can be set to expire or to view only. |
| New and existing guests | Guests sign in or use a verification code. |
| Existing guests | Only guests already in your directory. |
| Only people in your organization | External sharing off. |
What happens when the number changes?
Existing links keep their current expiration time if the new setting is longer. If the new setting is shorter, they update to it.
How is guest expiration different?
Administrators can set guest access to a site or OneDrive to expire automatically after a number of days. This covers each guest invited to the site or given individual files and folders.
People who use a verification code have a different setting: they must reauthenticate after a set number of days if they choose to stay signed in.
What can OneDrive and sites do?
The OneDrive setting can be stricter than the SharePoint setting, but not looser. A site can have its own setting at the same level or stricter than the organization's. You can also limit sharing by domain, with up to 5,000 domains listed.
What else limits Anyone links?
Link permissions can restrict Anyone links to view only. Microsoft says that once external sharing is restricted or off, guests usually lose access within an hour.
Link not working for a guest?
An expired link is one cause, but there are others. See a guest cannot open a shared link, missing Anyone link option and sharing a list externally.
FAQ
Do SharePoint sharing links expire by themselves?
Microsoft describes expiration for Anyone links as a setting an administrator can require.
Can I set expiry per link?
Microsoft's page describes a maximum number of days that an administrator sets. It does not describe a per-link setting.
Does guest expiry apply to Anyone links?
No. It applies to invited guests on a site or OneDrive.
What if I turn external sharing off?
Guests usually lose access within an hour. Turn it back on later and they regain access.
Where do I set Anyone link expiration?
In the SharePoint admin center under Policies, Sharing, in the advanced settings for Anyone links.
Can OneDrive allow more sharing than SharePoint?
No. Microsoft says the OneDrive setting can be more restrictive, not more permissive.
Do file requests still work if links expire?
File requests need OneDrive set to Anyone and edit permission for Anyone links enabled. Microsoft's page does not say how link expiration affects them.