Per-Site Anyone Link Expiration Policy just for Communication Sites

%3CLINGO-SUB%20id%3D%22lingo-sub-833698%22%20slang%3D%22en-US%22%3EPer-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-833698%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20question%20regarding%20the%20message%20center%20post%26nbsp%3B%3CSPAN%3EMC186627%20%22Per-Site%20Anyone%20Link%20Expiration%20Policy%22%2C%20roadmap%20ID%26nbsp%3B53748.%20We%20can%20use%20the%20feature%20in%20our%20tenant%2C%20but%20just%20for%20Communication%20Sites.%20If%20I%20want%20to%20change%20the%20policy%20on%20a%20group-connected%20teamsite%20Powershell%20fails%20with%20an%20error%20the%20parameters%20are%20not%20valid%20for%26nbsp%3Bgroup-connected%20sites.%20If%20I%20use%20the%20same%20parameters%20on%20CommSites%20we%20have%20no%20issues.%20Does%20anyone%20know%20why%20this%20feature%20is%20limited%20to%20Communication%20sites%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EExample%3A%3CBR%20%2F%3E%3CEM%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Fset-sposite%3Fview%3Dsharepoint-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESet-SPOSite%3C%2FA%3E-Identity%20%24Site%20-AnonymousLinkExpirationInDays%2090%20-OverrideTenantAnonymousLinkExpirationPolicy%20%24true%3C%2FEM%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3ETobias%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-833698%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECommunication%20Sites%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-833719%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-833719%22%20slang%3D%22en-US%22%3EIt's%20not%20limited%20to%20just%20Comm%20sites%2C%20but%20it%20is%20excluded%20from%20Group%20connected%20sites%2C%20but%20normal%20Team%20sites%2C%20classic%20and%20comm%20sites%20allow%20it.%20Not%20sure%20technically%20why%20you%20can't%20do%20it%20to%20Group%20connected%20sites%2C%20could%20be%20something%20with%20guest%20access%2C%20but%20you%20would%20think%20it%20would%20be%20a%20separate%20setting.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-833973%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-833973%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F8684%22%20target%3D%22_blank%22%3E%40Tobias%20Asb%C3%B6ck%3C%2FA%3Emy%202cents%20-%20i%20would%20check%20if%20the%20Policy%20Lables%20(under%20azure%20%26gt%3B%20classification)%20are%20published%20for%20groups%20as%20well.%20P.S%20-%20you'll%20be%20able%20to%20see%20that%20only%20if%20you're%20the%20admin%20to%20that%20policy%20and%20if%20you've%20AIP%20plan%20in%20your%20subscription.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844905%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844905%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20confirm%20if%20you%20are%20still%20seeing%20this%20issue%3F%20Per-Site%20Anyone%20Link%20Expiration%20should%20work%20for%20all%20sites%20(including%20group%20sites)%20so%20if%20you%20are%20not%20seeing%20that%2C%20then%20that's%20something%20for%20us%20to%20track%20down%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%2C%20Senior%20Program%20Manager%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846301%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846301%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3B%2C%20thanks%20for%20the%20input.%20I%20tested%20the%20command%20on%20a%20group%20site%20again%2C%20now%20it's%20ok%20for%20both%20site%20types.%20I'm%20using%20SharePoint%20Management%20Shell%2016.0.9119.0.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846339%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846339%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3BMaybe%20you%20can%20answer%20me%20an%20additional%20question%20about%20this%20feature%3F%20If%20the%20policy%26nbsp%3Bon%20the%20site%20is%20changed%20back%20to%20the%20tenant%20setting%20(e.g.%2010%20days)%2C%20what%20happens%20with%20existing%20sharing%20links%3F%20Are%20they%20valid%20until%20they%20expire%20(e.g.%20for%2090%20days%2C%20from%20the%20previous%20configuration)%2C%20or%26nbsp%3Bdo%20they%20expire%20immediately%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-847132%22%20slang%3D%22en-US%22%3ERe%3A%20Per-Site%20Anyone%20Link%20Expiration%20Policy%20just%20for%20Communication%20Sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-847132%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F8684%22%20target%3D%22_blank%22%3E%40Tobias%20Asb%C3%B6ck%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGlad%20to%20hear%20it%20is%20working!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20it's%20been%20a%20while%20since%20I've%20looked%20at%20this%20but%20my%20recollection%20is%20that%20yes%2C%20the%20old%20links%20will%20respect%20the%20new%20tenant%20setting%20though%20I%20think%20they%20may%20only%20show%20up%20as%20expired%20after%20a%20user%20clicks%20on%20them%20(and%20gets%20the%20access%20denied%20experience).%20Hope%20that%20helps!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3ESenior%20Program%20Manager%2C%20OneDrive%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I have a question regarding the message center post MC186627 "Per-Site Anyone Link Expiration Policy", roadmap ID 53748. We can use the feature in our tenant, but just for Communication Sites. If I want to change the policy on a group-connected teamsite Powershell fails with an error the parameters are not valid for group-connected sites. If I use the same parameters on CommSites we have no issues. Does anyone know why this feature is limited to Communication sites?

 

Example:
Set-SPOSite -Identity $Site -AnonymousLinkExpirationInDays 90 -OverrideTenantAnonymousLinkExpirationPolicy $true

 

Best regards

Tobias

6 Replies
It's not limited to just Comm sites, but it is excluded from Group connected sites, but normal Team sites, classic and comm sites allow it. Not sure technically why you can't do it to Group connected sites, could be something with guest access, but you would think it would be a separate setting.

@Tobias Asböckmy 2cents - i would check if the Policy Lables (under azure > classification) are published for groups as well. P.S - you'll be able to see that only if you're the admin to that policy and if you've AIP plan in your subscription.

Hi all,

 

Can you confirm if you are still seeing this issue? Per-Site Anyone Link Expiration should work for all sites (including group sites) so if you are not seeing that, then that's something for us to track down :) 

 

Stephen Rice

OneDrive, Senior Program Manager

Hi @Stephen Rice , thanks for the input. I tested the command on a group site again, now it's ok for both site types. I'm using SharePoint Management Shell 16.0.9119.0. 

@Stephen Rice Maybe you can answer me an additional question about this feature? If the policy on the site is changed back to the tenant setting (e.g. 10 days), what happens with existing sharing links? Are they valid until they expire (e.g. for 90 days, from the previous configuration), or do they expire immediately?

Hi @Tobias Asböck,

 

Glad to hear it is working!

 

And it's been a while since I've looked at this but my recollection is that yes, the old links will respect the new tenant setting though I think they may only show up as expired after a user clicks on them (and gets the access denied experience). Hope that helps!

 

Stephen Rice

Senior Program Manager, OneDrive