SharePoint and OneDrive now support expiration policies for “People in your organization” sharing links

Microsoft is rolling out expiration policies for internal “People in your organization” sharing links in SharePoint and OneDrive. This enhancement allows administrators to automatically expire internal sharing links after a defined period, improving data governance and reducing exposure to stale access.

Previously, administrators could force an expiration policy for anonymous (“Anyone”) links.

Timeline

The rollout should be completed by late June 2026.

How does this affect your organization?

SharePoint administrators can now configure “People in your organization” sharing links to expire after a specific period, with a minimum of 7 days.

  • By default, nothing changes. Internal “People in your organization” links do not expire unless an admin sets a policy.
  • A SharePoint admin can set the expiration policy for a single SharePoint or OneDrive site collection, or for all SharePoint or OneDrive site collections in the tenant as a global setting.
  • This update has no impact on existing sharing links. Only links created after a policy is applied will automatically expire per the configured timeframe.

SharePoint Online PowerShell required
All settings are currently available via SharePoint Online PowerShell, not in the SharePoint admin center.


Tenant-level configuration

All SharePoint and OneDrive sites inherit the tenant-level link expiration policy. The settings are available separately for SharePoint and OneDrive and are configured through four new properties.

  • CoreOrganizationSharingLinkMaxExpirationInDays

CoreOrganizationSharingLinkMaxExpirationInDays sets the maximum number of days before organization sharing links expire across all SharePoint sites, excluding OneDrive. This is a tenant-wide setting, and all geos inherit the policy.

The value can be between 7 and 720 days. To remove the expiration requirement, set the value to zero (0).

  • CoreOrganizationSharingLinkRecommendedExpirationInDays

CoreOrganizationSharingLinkRecommendedExpirationInDays sets the recommended number of days before organization sharing links expire across all SharePoint sites, excluding OneDrive. This setting provides a suggested expiration period to users when they create sharing links. This is a tenant-wide setting, and all geos inherit the policy.

The value can be between 7 and 720 days and must be less than or equal to the maximum expiration value set by CoreOrganizationSharingLinkMaxExpirationInDays. When set to 0, the default value will be CoreOrganizationSharingLinkMaxExpirationInDays.

  • OneDriveOrganizationSharingLinkMaxExpirationInDays

OneDriveOrganizationSharingLinkMaxExpirationInDays sets the maximum number of days before organization sharing links expire across all OneDrive sites. This is a tenant-wide setting, and all geos inherit the policy. The value can be between 7 and 720 days.

  • OneDriveOrganizationSharingLinkRecommendedExpirationInDays

OneDriveOrganizationSharingLinkRecommendedExpirationInDays sets the recommended number of days before organization sharing links expire across all OneDrive sites. This setting provides a suggested expiration period for users when creating sharing links. This is a tenant-wide setting, and all geos inherit the policy.

The value must be between 7 and 720 days and must be less than or equal to OneDriveOrganizationSharingLinkMaxExpirationInDays. When set to 0, the default value will be OneDriveOrganizationSharingLinkMaxExpirationInDays.

Default configuration for the SharePoint tenant
Default configuration for the SharePoint tenant

Site collection overrides

SharePoint admins can also define expiration settings at the site level, overriding the tenant-level policy for specific SharePoint or OneDrive sites. Site collection admins and site owners cannot change these admin-controlled settings.

SharePoint admins can configure three new site properties.

  • OrganizationSharingLinkMaxExpirationInDays

OrganizationSharingLinkMaxExpirationInDays sets the maximum number of days before organization sharing links on this site expire.
The value can be between 7 and 720 days. To remove the expiration requirement, set the value to zero (0).

  • OrganizationSharingLinkRecommendedExpirationInDays

OrganizationSharingLinkRecommendedExpirationInDays sets the recommended number of days before organization sharing links on this site expire. This setting provides a suggested expiration period to users when they create sharing links.

The value can be between 7 and 720 days and must be less than or equal to the maximum expiration value set by OrganizationSharingLinkMaxExpirationInDays. When set to 0, the default value will be OrganizationSharingLinkMaxExpirationInDays.

  • OverrideTenantOrganizationSharingLinkExpirationPolicy

OverrideTenantOrganizationSharingLinkExpirationPolicy controls whether the tenant-level organization sharing link expiration policy is overridden for this site. Overrides both the maximum and recommended values.

Possible values:

  • False: Respect the tenant-level organization sharing link expiration policy.
  • True: Override the tenant-level organization sharing link expiration policy (can be more or less restrictive).
Default configuration for site collections
Default configuration for site collections

In my first sample, I configure an override for a SharePoint site with a recommended expiration of 90 days.

PowerShell
Set-SPOSite -Identity $Site -OverrideTenantOrganizationSharingLinkExpirationPolicy $true -OrganizationSharingLinkRecommendedExpirationInDays 90


When users share a document with the organization, SharePoint pre-fills the recommended date, but users can remove or extend it.

OrganizationSharingLinkRecommendedExpirationInDays is 90 days
OrganizationSharingLinkRecommendedExpirationInDays is 90 days

In my second sample, I configure the maximum expiration value to 90 days.

PowerShell
Set-SPOSite -Identity $Site -OverrideTenantOrganizationSharingLinkExpirationPolicy $true -OrganizationSharingLinkMaxExpirationInDays 90


When users share a document with the organization, SharePoint sets the latest allowed date, and users cannot remove it, but can choose a shorter period.

OrganizationSharingLinkMaxExpirationInDays is 90 days
OrganizationSharingLinkMaxExpirationInDays is 90 days

In my third sample, I combine both settings, with a maximum expiration of 180 days and a recommended expiration of 90 days.

PowerShell
Set-SPOSite -Identity $Site -OverrideTenantOrganizationSharingLinkExpirationPolicy $true -OrganizationSharingLinkMaxExpirationInDays 180 -OrganizationSharingLinkRecommendedExpirationInDays 90


When users share a document with the organization, SharePoint pre-fills 90 days as the expiration date. Users cannot remove it, but can extend it up to 180 days.

OrganizationSharingLinkRecommendedExpirationInDays is 90 days, OrganizationSharingLinkMaxExpirationInDays is 180 days
OrganizationSharingLinkRecommendedExpirationInDays is 90 days, OrganizationSharingLinkMaxExpirationInDays is 180 days
Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *