Set Expiration for SharePoint Online Anonymous links in Office 365

Set Expiration for SharePoint Online Anonymous links


The below PowerShell command will set a mandatory 30 DAYS limit on all Anonymous links (or external sharing links) generated from SharePoint Online and OneDrive for Business.

If you do not see the parameter listed for the Set-SPOTenant command, update the SharePoint Online PowerShell to the latest version.


Set-SPOTenant -SharingCapability ExternalUserAndGuestSharing
Set-SPOTenant –RequireAnonymousLinksExpireInDays 30




This PowerShell command disable the expiration entirely.

Set-SPOTenant –RequireAnonymousLinksExpireInDays 0



Get-SPOTenant
identified your settings:




another good blog article is found here:
https://blogs.msdn.microsoft.com/richard_dizeregas_blog/2014/08/30/expiring-external-user-sharing-in-sharepoint-online/
https://support.office.com/en-gb/article/Share-sites-or-documents-with-people-outside-your-organization-80e49744-e30f-44db-8d51-16661b1d4232



Login to SharePoint Online:
http://www.uclabs.blog/2017/05/remote-powershell-login-office-365-all.html


Comments

Popular posts from this blog

How to hide users from GAL if they are AD Connect synchronized

Cannot join external Lync Meeting: Lync Edge Server Single IP Address (Lync Edge Server Single IP Web Conferenceing Problem)

MFA with Guest Access and different tenants settings