Skip to content

Commit 4219716

Browse files
Merge pull request #1038 from hhhults/main
Add Org Link Expiration Policies
2 parents 2e1920d + 64ab74f commit 4219716

File tree

2 files changed

+177
-42
lines changed

2 files changed

+177
-42
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-Owner <String>] [-Title <String>] [-
5050
[-DefaultLinkPermission <SharingPermissionType>] [-DefaultLinkToExistingAccess <Boolean>]
5151
[-DefaultLinkToExistingAccessReset] [-AnonymousLinkExpirationInDays <Int32>]
5252
[-OverrideTenantAnonymousLinkExpirationPolicy <Boolean>] [-ExternalUserExpirationInDays <Int32>]
53-
[-OverrideTenantExternalUserExpirationPolicy <Boolean>] [-InformationBarriersMode <String>]
53+
[-OverrideTenantExternalUserExpirationPolicy <Boolean>] [-OrganizationSharingLinkMaxExpirationInDays <Int32>]
54+
[-OrganizationSharingLinkRecommendedExpirationInDays <Int32>]
55+
[-OverrideTenantOrganizationSharingLinkExpirationPolicy <Boolean>] [-InformationBarriersMode <String>]
5456
[-BlockDownloadLinksFileType <BlockDownloadLinksFileTypes>]
5557
[-OverrideBlockUserInfoVisibility <SiteUserInfoVisibilityPolicyValue>]
5658
[-LoopDefaultSharingLinkScope <SharingScope>] [-LoopDefaultSharingLinkRole <SharingRole>]
@@ -60,12 +62,9 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-Owner <String>] [-Title <String>] [-
6062
[-RestrictContentOrgWideSearch <Boolean>] [-RestrictedContentDiscoveryforCopilotAndAgents <Boolean>]
6163
[-RestrictedAccessControl <Boolean>] [-RestrictedAccessControlGroups <Guid[]>]
6264
[-ListsShowHeaderAndNavigation <Boolean>] [-HidePeoplePreviewingFiles <Boolean>]
63-
[-HidePeopleWhoHaveListsOpen <Boolean>] [-AllowFileArchive <Boolean>]
64-
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
65-
[-DisableSiteBranding <Boolean>]
66-
[-IsAuthoritative <Boolean>]
67-
[-WhatIf] [-Confirm]
68-
[<CommonParameters>]
65+
[-HidePeopleWhoHaveListsOpen <Boolean>] [-IsAuthoritative <Boolean>] [-AllowFileArchive <Boolean>]
66+
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-DisableSiteBranding <Boolean>]
67+
[-WhatIf] [-Confirm] [<CommonParameters>]
6968
```
7069

7170
### ParamSet2
@@ -1594,6 +1593,50 @@ Accept pipeline input: False
15941593
Accept wildcard characters: False
15951594
```
15961595

1596+
### -OrganizationSharingLinkMaxExpirationInDays
1597+
1598+
> Applicable: SharePoint Online
1599+
1600+
Specifies the maximum number of days before organization sharing links expire for this site.
1601+
1602+
The value can be from 7 to 720 days.
1603+
1604+
To remove the expiration requirement, set the value to zero (0).
1605+
1606+
```yaml
1607+
Type: System.Int32
1608+
Parameter Sets: ParamSet1
1609+
Aliases:
1610+
1611+
Required: False
1612+
Position: Named
1613+
Default value: None
1614+
Accept pipeline input: False
1615+
Accept wildcard characters: False
1616+
```
1617+
1618+
### -OrganizationSharingLinkRecommendedExpirationInDays
1619+
1620+
> Applicable: SharePoint Online
1621+
1622+
Specifies the recommended number of days before organization sharing links expire for this site. This setting provides a suggested expiration period to users when they create sharing links.
1623+
1624+
The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `OrganizationSharingLinkMaxExpirationInDays`.
1625+
1626+
To remove the recommendation, set the value to zero (0).
1627+
1628+
```yaml
1629+
Type: System.Int32
1630+
Parameter Sets: ParamSet1
1631+
Aliases:
1632+
1633+
Required: False
1634+
Position: Named
1635+
Default value: None
1636+
Accept pipeline input: False
1637+
Accept wildcard characters: False
1638+
```
1639+
15971640
### -OverrideBlockUserInfoVisibility
15981641

15991642
> Applicable: SharePoint Online
@@ -1688,6 +1731,29 @@ Accept pipeline input: False
16881731
Accept wildcard characters: False
16891732
```
16901733

1734+
### -OverrideTenantOrganizationSharingLinkExpirationPolicy
1735+
1736+
> Applicable: SharePoint Online
1737+
1738+
Choose whether to override the tenant-level organization sharing link expiration policy on this site.
1739+
1740+
Possible values:
1741+
1742+
- False: Respect the tenant-level organization sharing link expiration policy.
1743+
- True: Override the tenant-level organization sharing link expiration policy (can be more or less restrictive).
1744+
1745+
```yaml
1746+
Type: System.Boolean
1747+
Parameter Sets: ParamSet1
1748+
Aliases:
1749+
1750+
Required: False
1751+
Position: Named
1752+
Default value: None
1753+
Accept pipeline input: False
1754+
Accept wildcard characters: False
1755+
```
1756+
16911757
### -Owner
16921758

16931759
> Applicable: SharePoint Online

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md

Lines changed: 104 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
2828
[-ShowEveryoneExceptExternalUsersClaim <Boolean>]
2929
[-AllowEveryoneExceptExternalUsersClaimInPrivateSite <Boolean>] [-SearchResolveExactEmailOrUPN <Boolean>]
3030
[-OfficeClientADALDisabled <Boolean>] [-LegacyAuthProtocolsEnabled <Boolean>]
31-
[-LegacyBrowserAuthProtocolsEnabled <Boolean>] [-DisableCustomAppAuthentication <Boolean>]
31+
[-LegacyBrowserAuthProtocolsEnabled <Boolean>] [-AllowLegacyBrowserAuthProtocolsEnabledSetting <Boolean>]
32+
[-AllowLegacyAuthProtocolsEnabledSetting <Boolean>] [-DisableCustomAppAuthentication <Boolean>]
3233
[-IsSharePointAddInsDisabled <Boolean>] [-IsSharePointAddInsBlocked <Boolean>]
3334
[-DisableSharePointStoreAccess <Boolean>] [-SiteOwnerManageLegacyServicePrincipalEnabled <Boolean>]
3435
[-RequireAcceptingAccountMatchInvitedAccount <Boolean>] [-ProvisionSharedWithEveryoneFolder <Boolean>]
3536
[-SignInAccelerationDomain <String>] [-EnableGuestSignInAcceleration <Boolean>]
3637
[-UsePersistentCookiesForExplorerView <Boolean>] [-ReSyncTenantPrivacyProfile]
3738
[-BccExternalSharingInvitations <Boolean>] [-BccExternalSharingInvitationsList <String>]
3839
[-PublicCdnEnabled <Boolean>] [-PublicCdnAllowedFileTypes <String>]
39-
[-RequireAnonymousLinksExpireInDays <Int32>] [-SharingAllowedDomainList <String>]
40+
[-RequireAnonymousLinksExpireInDays <Int32>] [-OneDriveOrganizationSharingLinkMaxExpirationInDays <Int32>]
41+
[-CoreOrganizationSharingLinkMaxExpirationInDays <Int32>]
42+
[-OneDriveOrganizationSharingLinkRecommendedExpirationInDays <Int32>]
43+
[-CoreOrganizationSharingLinkRecommendedExpirationInDays <Int32>] [-SharingAllowedDomainList <String>]
4044
[-SharingBlockedDomainList <String>] [-SharingDomainRestrictionMode <SharingDomainRestrictionModes>]
4145
[-OneDriveStorageQuota <Int64>] [-OneDriveForGuestsEnabled <Boolean>] [-IPAddressEnforcement <Boolean>]
4246
[-IPAddressAllowList <String>] [-IPAddressWACTokenLifetime <Int32>]
@@ -52,10 +56,11 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
5256
[-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>] [-OwnerAnonymousNotification <Boolean>]
5357
[-CommentsOnSitePagesDisabled <Boolean>] [-CommentsOnFilesDisabled <Boolean>]
5458
[-CommentsOnListItemsDisabled <Boolean>] [-ViewersCanCommentOnMediaDisabled <Boolean>]
55-
[-SocialBarOnSitePagesDisabled <Boolean>] [-OrphanedPersonalSitesRetentionPeriod <Int32>]
56-
[-PermissiveBrowserFileHandlingOverride <Boolean>] [-DisallowInfectedFileDownload <Boolean>]
57-
[-DefaultLinkPermission <SharingPermissionType>] [-CustomizedExternalSharingServiceUrl <String>]
58-
[-ConditionalAccessPolicyErrorHelpLink <String>] [-RestrictedAccessControlforSitesErrorHelpLink <String>]
59+
[-SocialBarOnSitePagesDisabled <Boolean>] [-SiteOwnersCanAccessMissingContent <Boolean>]
60+
[-OrphanedPersonalSitesRetentionPeriod <Int32>] [-PermissiveBrowserFileHandlingOverride <Boolean>]
61+
[-DisallowInfectedFileDownload <Boolean>] [-DefaultLinkPermission <SharingPermissionType>]
62+
[-CustomizedExternalSharingServiceUrl <String>] [-ConditionalAccessPolicyErrorHelpLink <String>]
63+
[-RestrictedAccessControlforSitesErrorHelpLink <String>]
5964
[-RestrictedAccessControlForOneDriveErrorHelpLink <String>]
6065
[-ApplyAppEnforcedRestrictionsToAdHocRecipients <Boolean>] [-FilePickerExternalImageSearchEnabled <Boolean>]
6166
[-EmailAttestationRequired <Boolean>] [-EmailAttestationReAuthDays <Int32>]
@@ -82,6 +87,7 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
8287
[-IsFluidEnabled <Boolean>] [-IsWBFluidEnabled <Boolean>] [-IsCollabMeetingNotesFluidEnabled <Boolean>]
8388
[-IsLoopEnabled <Boolean>] [-DisableDocumentLibraryDefaultLabeling <Boolean>]
8489
[-ExtendPermissionsToUnprotectedFiles <Boolean>] [-EnableSensitivityLabelForPDF <Boolean>]
90+
[-EnableSensitivityLabelForOneNote <Boolean>] [-EnableSensitivityLabelForVideoFiles <Boolean>]
8591
[-BlockSendLabelMismatchEmail <Boolean>] [-LabelMismatchEmailHelpLink <String>]
8692
[-BlockUserInfoVisibility <String>] [-BlockUserInfoVisibilityInOneDrive <TenantBrowseUserInfoPolicyValue>]
8793
[-BlockUserInfoVisibilityInSharePoint <TenantBrowseUserInfoPolicyValue>]
@@ -106,8 +112,7 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
106112
[-MassDeleteNotificationDisabled <Boolean>] [-EnableAutoExpirationVersionTrim <Boolean>]
107113
[-EnableMediaReactions <Boolean>] [-BusinessConnectivityServiceDisabled <Boolean>]
108114
[-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-FileTypesForVersionExpiration <String[]>]
109-
[-RemoveVersionExpirationFileTypeOverride <String[]>]
110-
[-AllowSensitivityLabelOnRecords <Boolean>]
115+
[-RemoveVersionExpirationFileTypeOverride <String[]>] [-AllowSensitivityLabelOnRecords <Boolean>]
111116
[-DelayDenyAddAndCustomizePagesEnforcement <Boolean>]
112117
[-DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites <Boolean>]
113118
[-AllowClassicPublishingSiteCreation <Boolean>] [-WhoCanShareAnonymousAllowList <Guid[]>]
@@ -125,16 +130,14 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>]
125130
[-DocumentTranslationSelectedSitesListOperation <SelectedSitesListOperations>]
126131
[-AutofillColumnsScope <SyntexFeatureScopeValue>] [-AutofillColumnsSelectedSitesList <String[]>]
127132
[-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>]
133+
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
134+
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
128135
[-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>]
129136
[-OpticalCharacterRecognitionSelectedSitesList <String[]>]
130137
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
131138
[-DefaultContentCenterSite <String>]
132139
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>]
133-
[-RestrictResourceAccountAccess <Boolean>] [-EnableSensitivityLabelForOneNote <Boolean>]
134-
[-EnableSensitivityLabelForVideoFiles <Boolean>] [-SiteOwnersCanAccessMissingContent <Boolean>]
135-
[-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>]
136-
[-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>]
137-
[<CommonParameters>]
140+
[-RestrictResourceAccountAccess <Boolean>] [<CommonParameters>]
138141
```
139142

140143
### ParameterSetContentTypeSyncSiteTemplatesList
@@ -1809,6 +1812,50 @@ Accept pipeline input: False
18091812
Accept wildcard characters: False
18101813
```
18111814

1815+
### -CoreOrganizationSharingLinkMaxExpirationInDays
1816+
1817+
> Applicable: SharePoint Online
1818+
1819+
Specifies the maximum number of days before organization sharing links expire for all SharePoint sites (not including OneDrive sites).
1820+
1821+
The value can be from 7 to 720 days.
1822+
1823+
To remove the expiration requirement, set the value to zero (0).
1824+
1825+
```yaml
1826+
Type: System.Int32
1827+
Parameter Sets: (All)
1828+
Aliases:
1829+
1830+
Required: False
1831+
Position: Named
1832+
Default value: None
1833+
Accept pipeline input: False
1834+
Accept wildcard characters: False
1835+
```
1836+
1837+
### -CoreOrganizationSharingLinkRecommendedExpirationInDays
1838+
1839+
> Applicable: SharePoint Online
1840+
1841+
Specifies the recommended number of days before organization sharing links expire for all SharePoint sites (not including OneDrive sites). This setting provides a suggested expiration period to users when they create sharing links.
1842+
1843+
The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `CoreOrganizationSharingLinkMaxExpirationInDays`.
1844+
1845+
To remove the recommendation, set the value to zero (0).
1846+
1847+
```yaml
1848+
Type: System.Int32
1849+
Parameter Sets: (All)
1850+
Aliases:
1851+
1852+
Required: False
1853+
Position: Named
1854+
Default value: None
1855+
Accept pipeline input: False
1856+
Accept wildcard characters: False
1857+
```
1858+
18121859
### -CoreRequestFilesLinkEnabled
18131860

18141861
Enable or disable the Request files link on the core partition for all SharePoint sites (not including OneDrive sites). If this value is not set, Request files will only show for OneDrives with Anyone links enabled.
@@ -4151,6 +4198,50 @@ Accept pipeline input: False
41514198
Accept wildcard characters: False
41524199
```
41534200

4201+
### -OneDriveOrganizationSharingLinkMaxExpirationInDays
4202+
4203+
> Applicable: SharePoint Online
4204+
4205+
Specifies the maximum number of days before organization sharing links expire for all OneDrive sites.
4206+
4207+
The value can be from 7 to 720 days.
4208+
4209+
To remove the expiration requirement, set the value to zero (0).
4210+
4211+
```yaml
4212+
Type: System.Int32
4213+
Parameter Sets: (All)
4214+
Aliases:
4215+
4216+
Required: False
4217+
Position: Named
4218+
Default value: None
4219+
Accept pipeline input: False
4220+
Accept wildcard characters: False
4221+
```
4222+
4223+
### -OneDriveOrganizationSharingLinkRecommendedExpirationInDays
4224+
4225+
> Applicable: SharePoint Online
4226+
4227+
Specifies the recommended number of days before organization sharing links expire for all OneDrive sites. This setting provides a suggested expiration period to users when they create sharing links.
4228+
4229+
The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `OneDriveOrganizationSharingLinkMaxExpirationInDays`.
4230+
4231+
To remove the recommendation, set the value to zero (0).
4232+
4233+
```yaml
4234+
Type: System.Int32
4235+
Parameter Sets: (All)
4236+
Aliases:
4237+
4238+
Required: False
4239+
Position: Named
4240+
Default value: None
4241+
Accept pipeline input: False
4242+
Accept wildcard characters: False
4243+
```
4244+
41544245
### -OneDriveRequestFilesLinkEnabled
41554246

41564247
Enable or disable the Request files link on the OneDrive partition for all OneDrive sites. If this value is not set, the Request files link will only show for OneDrives with Anyone links enabled.
@@ -4639,28 +4730,6 @@ Accept pipeline input: False
46394730
Accept wildcard characters: False
46404731
```
46414732

4642-
### -RequireOrganizationLinksExpireInDays
4643-
4644-
> Applicable: SharePoint Online
4645-
4646-
Specifies the upper bound for user-created organization link expiration periods. All links created after setting this policy will expire by the end of a period spanning the set number of days.
4647-
4648-
The value can be from 7 to 730 days.
4649-
4650-
To remove the expiration requirement, set the value to zero (0).
4651-
4652-
```yaml
4653-
Type: Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations
4654-
Parameter Sets: (All)
4655-
Aliases:
4656-
4657-
Required: False
4658-
Position: Named
4659-
Default value: None
4660-
Accept pipeline input: False
4661-
Accept wildcard characters: False
4662-
```
4663-
46644733
### -RestrictedAccessControlForOneDriveErrorHelpLink
46654734

46664735
> Applicable: SharePoint Online

0 commit comments

Comments
 (0)