IAMinerva
HomeBlogAbout
m3M365 NewscoMicrosoft CopilotteMicrosoft TeamsshSharePoint & OneDriveinIntune & SecurityexExchange & OutlookpoPower PlatformazAzure & Entra IDtuTutorials & GuidesevEvents & ConferencesseSecuritywiWindows
IAMinerva

Professional blog dedicated to the Microsoft 365 ecosystem.

Quick links

HomeBlogAboutNewsletter

Stay informed

Get the latest Microsoft 365 news delivered straight to your inbox.

© 2026 IAMinerva. All rights reserved.

Built withNext.js&Tailwind
Expiration des liens de partage SharePoint : Nouvelles limites
BlogSharePoint & OneDriveSharePoint Sharing Link Expiration: New Limits
SharePoint & OneDrive#SharePoint Online#OneDrive#Sharing links

SharePoint Sharing Link Expiration: New Limits

Expiration of internal SharePoint Online sharing links. Learn how to configure these new settings via PowerShell. Clear and practical guide.

Houssem MAKHLOUF
March 12, 2026
3 min read

TL;DR par Minerva

généré par IA

Expiration of internal SharePoint Online sharing links. Learn how to configure these new settings via PowerShell. Clear and practical guide.

Introduction

SharePoint Online and OneDrive for Business offer internal sharing links that allow any authenticated user in the organization to access shared files. These links, called "people in your organization", ensure secure internal use while preventing external access.

However, the circulation of links that are not automatically deleted can lead to compromise risks. To address this issue, Microsoft introduced in 2026 a new feature allowing you to set expiration dates for these links in SharePoint Online and OneDrive.

[IMAGE:index:url:alt]

i

Good to know

Internal sharing links are compatible with Microsoft 365 Copilot once they have been claimed.

Configure a link expiration policy

Settings and configuration via PowerShell

By default, no expiration policy is set for internal links in Microsoft 365. However, administrators can configure this policy to enforce uniform limits. This can only be done using PowerShell, as the SharePoint Online web administration interface does not contain these options.

!

Attention

Make sure you are using version 16.0.27011.12008 or later of the Microsoft.Online.SharePoint.PowerShell module.

1

Configure maximum and recommended expiration

Use the commands below to set a maximum expiration of 60 days and a recommended duration of 30 days for SharePoint Online and OneDrive for Business:

⚡PowerShell
1Set-SPOTenant -CoreOrganizationSharingLinkMaxExpirationInDays 60
2Set-SPOTenant -CoreOrganizationSharingLinkRecommendedExpirationInDays 30
3Set-SPOTenant -OneDriveOrganizationSharingLinkRecommendedExpirationInDays 30
4Set-SPOTenant -OneDriveOrganizationSharingLinkMaxExpirationInDays 60
2

Verify current configuration

Examine the settings defined using the following command:

⚡PowerShell
1Get-SPOTenant | Format-List *SharingLink*Days

This will display values such as:

PLAINTEXT
1OneDriveOrganizationSharingLinkMaxExpirationInDays : 60
2OneDriveOrganizationSharingLinkRecommendedExpirationInDays : 30
3CoreOrganizationSharingLinkMaxExpirationInDays : 60
4CoreOrganizationSharingLinkRecommendedExpirationInDays : 30

Site-level exceptions

Administrators can also implement specific policies for certain sites. For example, you can set a maximum expiration of 150 days for a specific site with the following command:

⚡PowerShell
1$Uri = "https://office365itpros.sharepoint.com/sites/BlogsAndProjects"
2Set-SPOSite -Identity $Uri -OverrideTenantOrganizationSharingLinkExpirationPolicy $True -OrganizationSharingLinkMaxExpirationInDays 150 -OrganizationSharingLinkRecommendedExpirationInDays 45

To verify these settings:

⚡PowerShell
1Get-SPOSite -Identity $Uri -Detailed | Format-List *SharingLink*Days

This will display:

PLAINTEXT
1OrganizationSharingLinkMaxExpirationInDays : 150
2OrganizationSharingLinkRecommendedExpirationInDays : 45
✦

Tip

Configure specific policies for sensitive sites, especially those containing confidential information.

Additional tips

Managing security for sensitive sites

Ensure protection of confidential sites by applying sensitivity labels to limit sharing options. You can also block content discovery for Microsoft 365 Copilot through specific restrictions.

Auditing sharing events

Use the audit logs generated by SharePoint Online and OneDrive to analyze sharing events. These data, accessible through analytical tools, allow you to identify trends and potential risks. More information is available in the official documentation.


Useful links

  • Microsoft documentation on shareable links: Read here
  • Microsoft 365 Roadmap: Consult here
  • Tutorial on sensitivity labels: Learn more

Glossary of terms

  • Internal links: Links accessible only to authenticated users in the organization.
  • Set-SPOTenant cmdlet: PowerShell command used to configure settings at the tenant level.
  • Sensitivity labels: Security settings applied to SharePoint sites to limit data distribution.

Tags

  • "SharePoint Online"
  • "OneDrive"
  • "Sharing links"
  • "Link expiration"
  • "M365 security"
  • "PowerShell"
Share:
HM

Houssem MAKHLOUF

Microsoft 365 enthusiast & IT professional.

Previous article

Simplified Azure Local Machine Provisioning in Public Preview

Mar 12, 2026
Next article

Restrict Access to Multi-Tenant Entra Applications

Mar 13, 2026

Related articles

Exécution de scripts PowerShell pour auditer des applications AI et gérer leurs enregistrements.copilot

Audit and Manage AI Applications with PowerShell

Audit unauthorized AI applications in Entra ID with PowerShell and Microsoft Graph to strengthen control and security.

Jun 28, 20264 min
Graphiques abstraits et géométriques avec des couches de couleurs translucides.exchange

Converting Exchange IDs for Microsoft 365 Graph API

Convert Exchange identifiers (storeId, entryId, RestId) for Graph API and targeted eDiscovery. Technical guide with complete PowerShell scripts.

Jun 28, 20267 min
Pyramide réfléchissante au centre de réseaux de fils dorés et cercles.azure

Graph Delta Queries for Entra ID Groups

Learn how to use Graph Delta Queries for Entra ID groups to track changes in real-time. Tutorials and scripts included.

Jun 27, 20264 min