File Sharing Problems

How to Set OneDrive and SharePoint Link Expiration to 14 Days

Ayan MasoodAyan Masood Nov 3, 2026 869 views

Question details

The user needs to learn how to change the expiration period of Microsoft OneDrive and SharePoint shared links to 14 days.

How to Set OneDrive and SharePoint Link Expiration to 14 Days
Product
Microsoft 365 (OneDrive and SharePoint)
Device & OS
not provided
Scenario
A user or administrator wants to enforce stricter security measures by limiting the validity of anonymous file-sharing links to exactly 14 days.
Observed behavior
The system needs to automatically expire shared 'Anyone' links after 14 days either globally via admin policies or manually per link.
Before you start

Ensure you are logged in with Microsoft 365 SharePoint Administrator privileges if you intend to change the global sharing policies for your entire organization.

Solution 1Recommended

Configure Global Expiration in SharePoint Admin Center

Use this method to enforce a 14-day expiration limit on all new 'Anyone' links generated across your organization's SharePoint and OneDrive environments.

By modifying the global sharing policies, administrators ensure that no anonymous link remains active indefinitely, which significantly reduces data leakage risks.

1
Access the SharePoint Admin Center

Log in to the Microsoft 365 admin center using your administrator credentials and navigate to the SharePoint admin center.

2
Navigate to Sharing Policies

In the left-hand navigation pane, expand 'Policies' and click on 'Sharing' to open the external sharing settings.

3
Set Link Expiration

Scroll down to the 'Choose expiration and permissions options for Anyone links' section. Check the box for 'These links must expire within this many days' and type '14' into the numerical field.

4
Save Changes

Scroll to the bottom of the page and click 'Save' to apply this configuration to all OneDrive and SharePoint sites.

Configure Global Expiration in SharePoint Admin Center
Link Type Limitation: This global expiration setting only applies to 'Anyone' (anonymous) links. Links shared with 'Specific people' do not support this automatic expiration setting.
Free Microsoft Office alternative

Try WPS Office for Secure and Easy Document Collaboration

If you frequently work with shared documents and require a lightweight, highly compatible alternative to Microsoft Office, WPS Office offers excellent document creation, editing, and cloud-sharing capabilities completely free.

  1. 1. Download WPS Office: Visit the official WPS Office website to download and install the free suite on your device.
  2. 2. Save to WPS Cloud: Open your document and save it directly to WPS Cloud for secure backup.
  3. 3. Share with Expiration: Click the 'Share' button to generate a secure link where you can customize access permissions and validity.
Fully compatible with Microsoft Office formats, including .docx, .xlsx, and .pptx, ensuring seamless file migration.Built-in secure WPS Cloud storage that simplifies file sharing and collaboration with team members.Lightweight application design that offers a familiar, user-friendly interface without consuming heavy system resources.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I set an expiration date for 'Specific people' links?

Microsoft 365 currently only offers expiration settings for 'Anyone' links (anonymous sharing). Links generated for 'Specific people' require identity verification and do not support a built-in time expiration option by default.

Can guest access expiration be configured separately in Microsoft 365?

Yes. Administrators can manage guest access expiration independently from 'Anyone' link expiration. This is found in the SharePoint admin center under Policies > Sharing > More external sharing settings.

What happens if I need an expiration option that Microsoft doesn't offer?

If you require more robust sharing configurations or expiration options for specific people links, you can submit feature requests directly to Microsoft through the Feedback Hub application.