How to Set OneDrive and SharePoint Link Expiration to 14 Days
Question details
The user needs to learn how to change the expiration period of Microsoft OneDrive and SharePoint shared links 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.
Ensure you are logged in with Microsoft 365 SharePoint Administrator privileges if you intend to change the global sharing policies for your entire organization.
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.
Log in to the Microsoft 365 admin center using your administrator credentials and navigate to the SharePoint admin center.
In the left-hand navigation pane, expand 'Policies' and click on 'Sharing' to open the external sharing settings.
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.
Scroll to the bottom of the page and click 'Save' to apply this configuration to all OneDrive and SharePoint sites.

Set Expiration for an Individual Shared Link
Use this method if you are an end-user who wants to manually set an expiration date for a specific file or folder you are sharing.
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. Download WPS Office: Visit the official WPS Office website to download and install the free suite on your device.
- 2. Save to WPS Cloud: Open your document and save it directly to WPS Cloud for secure backup.
- 3. Share with Expiration: Click the 'Share' button to generate a secure link where you can customize access permissions and validity.

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.




