-
Notifications
You must be signed in to change notification settings - Fork 187
Add Org Link Expiration Policies #1038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cd9f9c9
Update Set-SPOSite.md with new expiration parameters
hhhults 505ede5
Update parameters in Set-SPOTenant documentation
hhhults d7ed980
add descriptions, change setting name
e874cdf
add doc for override
64ab74f
Update organization sharing link parameters documentation
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,9 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-Owner <String>] [-Title <String>] [- | |
| [-DefaultLinkPermission <SharingPermissionType>] [-DefaultLinkToExistingAccess <Boolean>] | ||
| [-DefaultLinkToExistingAccessReset] [-AnonymousLinkExpirationInDays <Int32>] | ||
| [-OverrideTenantAnonymousLinkExpirationPolicy <Boolean>] [-ExternalUserExpirationInDays <Int32>] | ||
| [-OverrideTenantExternalUserExpirationPolicy <Boolean>] [-InformationBarriersMode <String>] | ||
| [-OverrideTenantExternalUserExpirationPolicy <Boolean>] [-OrganizationSharingLinkMaxExpirationInDays <Int32>] | ||
| [-OrganizationSharingLinkRecommendedExpirationInDays <Int32>] | ||
| [-OverrideTenantOrganizationSharingLinkExpirationPolicy <Boolean>] [-InformationBarriersMode <String>] | ||
| [-BlockDownloadLinksFileType <BlockDownloadLinksFileTypes>] | ||
| [-OverrideBlockUserInfoVisibility <SiteUserInfoVisibilityPolicyValue>] | ||
| [-LoopDefaultSharingLinkScope <SharingScope>] [-LoopDefaultSharingLinkRole <SharingRole>] | ||
|
|
@@ -60,12 +62,9 @@ Set-SPOSite [-Identity] <SpoSitePipeBind> [-Owner <String>] [-Title <String>] [- | |
| [-RestrictContentOrgWideSearch <Boolean>] [-RestrictedContentDiscoveryforCopilotAndAgents <Boolean>] | ||
| [-RestrictedAccessControl <Boolean>] [-RestrictedAccessControlGroups <Guid[]>] | ||
| [-ListsShowHeaderAndNavigation <Boolean>] [-HidePeoplePreviewingFiles <Boolean>] | ||
| [-HidePeopleWhoHaveListsOpen <Boolean>] [-AllowFileArchive <Boolean>] | ||
| [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] | ||
| [-DisableSiteBranding <Boolean>] | ||
| [-IsAuthoritative <Boolean>] | ||
| [-WhatIf] [-Confirm] | ||
| [<CommonParameters>] | ||
| [-HidePeopleWhoHaveListsOpen <Boolean>] [-IsAuthoritative <Boolean>] [-AllowFileArchive <Boolean>] | ||
| [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-DisableSiteBranding <Boolean>] | ||
| [-WhatIf] [-Confirm] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ### ParamSet2 | ||
|
|
@@ -1594,6 +1593,50 @@ Accept pipeline input: False | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OrganizationSharingLinkMaxExpirationInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies the maximum number of days before organization sharing links expire for this site. | ||
|
|
||
| The value can be from 7 to 720 days. | ||
|
|
||
| To remove the expiration requirement, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: ParamSet1 | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OrganizationSharingLinkRecommendedExpirationInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| 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. | ||
|
|
||
| The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `OrganizationSharingLinkMaxExpirationInDays`. | ||
|
|
||
| To remove the recommendation, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: ParamSet1 | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OverrideBlockUserInfoVisibility | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
@@ -1688,6 +1731,29 @@ Accept pipeline input: False | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OverrideTenantOrganizationSharingLinkExpirationPolicy | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Choose whether to override the tenant-level organization sharing link expiration policy on this site. | ||
|
|
||
| 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). | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops :) #Closed |
||
| ```yaml | ||
| Type: System.Boolean | ||
| Parameter Sets: ParamSet1 | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Owner | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,15 +28,19 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>] | |
| [-ShowEveryoneExceptExternalUsersClaim <Boolean>] | ||
| [-AllowEveryoneExceptExternalUsersClaimInPrivateSite <Boolean>] [-SearchResolveExactEmailOrUPN <Boolean>] | ||
| [-OfficeClientADALDisabled <Boolean>] [-LegacyAuthProtocolsEnabled <Boolean>] | ||
| [-LegacyBrowserAuthProtocolsEnabled <Boolean>] [-DisableCustomAppAuthentication <Boolean>] | ||
| [-LegacyBrowserAuthProtocolsEnabled <Boolean>] [-AllowLegacyBrowserAuthProtocolsEnabledSetting <Boolean>] | ||
| [-AllowLegacyAuthProtocolsEnabledSetting <Boolean>] [-DisableCustomAppAuthentication <Boolean>] | ||
| [-IsSharePointAddInsDisabled <Boolean>] [-IsSharePointAddInsBlocked <Boolean>] | ||
| [-DisableSharePointStoreAccess <Boolean>] [-SiteOwnerManageLegacyServicePrincipalEnabled <Boolean>] | ||
| [-RequireAcceptingAccountMatchInvitedAccount <Boolean>] [-ProvisionSharedWithEveryoneFolder <Boolean>] | ||
| [-SignInAccelerationDomain <String>] [-EnableGuestSignInAcceleration <Boolean>] | ||
| [-UsePersistentCookiesForExplorerView <Boolean>] [-ReSyncTenantPrivacyProfile] | ||
| [-BccExternalSharingInvitations <Boolean>] [-BccExternalSharingInvitationsList <String>] | ||
| [-PublicCdnEnabled <Boolean>] [-PublicCdnAllowedFileTypes <String>] | ||
| [-RequireAnonymousLinksExpireInDays <Int32>] [-SharingAllowedDomainList <String>] | ||
| [-RequireAnonymousLinksExpireInDays <Int32>] [-OneDriveOrganizationSharingLinkMaxExpirationInDays <Int32>] | ||
| [-CoreOrganizationSharingLinkMaxExpirationInDays <Int32>] | ||
| [-OneDriveOrganizationSharingLinkRecommendedExpirationInDays <Int32>] | ||
| [-CoreOrganizationSharingLinkRecommendedExpirationInDays <Int32>] [-SharingAllowedDomainList <String>] | ||
| [-SharingBlockedDomainList <String>] [-SharingDomainRestrictionMode <SharingDomainRestrictionModes>] | ||
| [-OneDriveStorageQuota <Int64>] [-OneDriveForGuestsEnabled <Boolean>] [-IPAddressEnforcement <Boolean>] | ||
| [-IPAddressAllowList <String>] [-IPAddressWACTokenLifetime <Int32>] | ||
|
|
@@ -52,10 +56,11 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>] | |
| [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>] [-OwnerAnonymousNotification <Boolean>] | ||
| [-CommentsOnSitePagesDisabled <Boolean>] [-CommentsOnFilesDisabled <Boolean>] | ||
| [-CommentsOnListItemsDisabled <Boolean>] [-ViewersCanCommentOnMediaDisabled <Boolean>] | ||
| [-SocialBarOnSitePagesDisabled <Boolean>] [-OrphanedPersonalSitesRetentionPeriod <Int32>] | ||
| [-PermissiveBrowserFileHandlingOverride <Boolean>] [-DisallowInfectedFileDownload <Boolean>] | ||
| [-DefaultLinkPermission <SharingPermissionType>] [-CustomizedExternalSharingServiceUrl <String>] | ||
| [-ConditionalAccessPolicyErrorHelpLink <String>] [-RestrictedAccessControlforSitesErrorHelpLink <String>] | ||
| [-SocialBarOnSitePagesDisabled <Boolean>] [-SiteOwnersCanAccessMissingContent <Boolean>] | ||
| [-OrphanedPersonalSitesRetentionPeriod <Int32>] [-PermissiveBrowserFileHandlingOverride <Boolean>] | ||
| [-DisallowInfectedFileDownload <Boolean>] [-DefaultLinkPermission <SharingPermissionType>] | ||
| [-CustomizedExternalSharingServiceUrl <String>] [-ConditionalAccessPolicyErrorHelpLink <String>] | ||
| [-RestrictedAccessControlforSitesErrorHelpLink <String>] | ||
| [-RestrictedAccessControlForOneDriveErrorHelpLink <String>] | ||
| [-ApplyAppEnforcedRestrictionsToAdHocRecipients <Boolean>] [-FilePickerExternalImageSearchEnabled <Boolean>] | ||
| [-EmailAttestationRequired <Boolean>] [-EmailAttestationReAuthDays <Int32>] | ||
|
|
@@ -82,6 +87,7 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>] | |
| [-IsFluidEnabled <Boolean>] [-IsWBFluidEnabled <Boolean>] [-IsCollabMeetingNotesFluidEnabled <Boolean>] | ||
| [-IsLoopEnabled <Boolean>] [-DisableDocumentLibraryDefaultLabeling <Boolean>] | ||
| [-ExtendPermissionsToUnprotectedFiles <Boolean>] [-EnableSensitivityLabelForPDF <Boolean>] | ||
| [-EnableSensitivityLabelForOneNote <Boolean>] [-EnableSensitivityLabelForVideoFiles <Boolean>] | ||
| [-BlockSendLabelMismatchEmail <Boolean>] [-LabelMismatchEmailHelpLink <String>] | ||
| [-BlockUserInfoVisibility <String>] [-BlockUserInfoVisibilityInOneDrive <TenantBrowseUserInfoPolicyValue>] | ||
| [-BlockUserInfoVisibilityInSharePoint <TenantBrowseUserInfoPolicyValue>] | ||
|
|
@@ -106,8 +112,7 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>] | |
| [-MassDeleteNotificationDisabled <Boolean>] [-EnableAutoExpirationVersionTrim <Boolean>] | ||
| [-EnableMediaReactions <Boolean>] [-BusinessConnectivityServiceDisabled <Boolean>] | ||
| [-ExpireVersionsAfterDays <Int32>] [-MajorVersionLimit <Int32>] [-FileTypesForVersionExpiration <String[]>] | ||
| [-RemoveVersionExpirationFileTypeOverride <String[]>] | ||
| [-AllowSensitivityLabelOnRecords <Boolean>] | ||
| [-RemoveVersionExpirationFileTypeOverride <String[]>] [-AllowSensitivityLabelOnRecords <Boolean>] | ||
| [-DelayDenyAddAndCustomizePagesEnforcement <Boolean>] | ||
| [-DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites <Boolean>] | ||
| [-AllowClassicPublishingSiteCreation <Boolean>] [-WhoCanShareAnonymousAllowList <Guid[]>] | ||
|
|
@@ -125,16 +130,14 @@ Set-SPOTenant [-MinCompatibilityLevel <Int32>] [-MaxCompatibilityLevel <Int32>] | |
| [-DocumentTranslationSelectedSitesListOperation <SelectedSitesListOperations>] | ||
| [-AutofillColumnsScope <SyntexFeatureScopeValue>] [-AutofillColumnsSelectedSitesList <String[]>] | ||
| [-AutofillColumnsSelectedSitesListOperation <SelectedSitesListOperations>] | ||
| [-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>] | ||
| [-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>] | ||
| [-OpticalCharacterRecognitionScope <SyntexFeatureScopeValue>] | ||
| [-OpticalCharacterRecognitionSelectedSitesList <String[]>] | ||
| [-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>] | ||
| [-DefaultContentCenterSite <String>] | ||
| [-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>] [-EnforceRequestDigest <Boolean>] | ||
| [-RestrictResourceAccountAccess <Boolean>] [-EnableSensitivityLabelForOneNote <Boolean>] | ||
| [-EnableSensitivityLabelForVideoFiles <Boolean>] [-SiteOwnersCanAccessMissingContent <Boolean>] | ||
| [-KnowledgeAgentScope <KnowledgeAgentFeatureScopeValue>] [-KnowledgeAgentSelectedSitesList <String[]>] | ||
| [-KnowledgeAgentSelectedSitesListOperation <SelectedSitesListOperations>] | ||
| [<CommonParameters>] | ||
| [-RestrictResourceAccountAccess <Boolean>] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ### ParameterSetContentTypeSyncSiteTemplatesList | ||
|
|
@@ -1809,6 +1812,50 @@ Accept pipeline input: False | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -CoreOrganizationSharingLinkMaxExpirationInDays | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing |
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies the maximum number of days before organization sharing links expire for all SharePoint sites (not including OneDrive sites). | ||
|
|
||
| The value can be from 7 to 720 days. | ||
|
|
||
| To remove the expiration requirement, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -CoreOrganizationSharingLinkRecommendedExpirationInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| 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. | ||
|
|
||
| The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `CoreOrganizationSharingLinkMaxExpirationInDays`. | ||
|
|
||
| To remove the recommendation, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -CoreRequestFilesLinkEnabled | ||
|
|
||
| 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 | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OneDriveOrganizationSharingLinkMaxExpirationInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| Specifies the maximum number of days before organization sharing links expire for all OneDrive sites. | ||
|
|
||
| The value can be from 7 to 720 days. | ||
|
|
||
| To remove the expiration requirement, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OneDriveOrganizationSharingLinkRecommendedExpirationInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| 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. | ||
|
|
||
| The value can be from 7 to 720 days and must be less than or equal to the maximum expiration value set by `OneDriveOrganizationSharingLinkMaxExpirationInDays`. | ||
|
|
||
| To remove the recommendation, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: System.Int32 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -OneDriveRequestFilesLinkEnabled | ||
|
|
||
| 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 | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -RequireOrganizationLinksExpireInDays | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| 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. | ||
|
|
||
| The value can be from 7 to 730 days. | ||
|
|
||
| To remove the expiration requirement, set the value to zero (0). | ||
|
|
||
| ```yaml | ||
| Type: Microsoft.Online.SharePoint.TenantAdministration.SelectedSitesListOperations | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -RestrictedAccessControlForOneDriveErrorHelpLink | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing
> Applicable: SharePoint Onlinefor all the new params #Closed