diff --git a/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx b/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx index efb001a70b..e872800a3c 100644 --- a/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +++ b/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx @@ -25,6 +25,18 @@ m365 spo tenant settings set [options] `--NoAccessRedirectUrl [NoAccessRedirectUrl]` : Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess". +`--ArchiveRedirectUrl [ArchiveRedirectUrl]` +: Specifies the URL of the redirected site for those site collections which has been archived using Microsoft Syntex Archiving + +`--ConditionalAccessPolicyErrorHelpLink [ConditionalAccessPolicyErrorHelpLink]` +: Sets the link to organization help page in case of access denied due to conditional access policy + +`--CustomizedExternalSharingServiceUrl [CustomizedExternalSharingServiceUrl]` +: Specifies a URL for "Help Link" in email with the subject "Incompatible sensitivity label detected" sent when a sensitivity label mismatch occurs between the label on the document uploaded and the label on the site + +`--LabelMismatchEmailHelpLink [LabelMismatchEmailHelpLink]` +: Specifies a URL that will be appended to the error message that is surfaced when a user is blocked from sharing externally by policy + `--SharingCapability [SharingCapability]` : Determines what level of sharing is available for the site. The valid values are: ExternalUserAndGuestSharing (default) - External user sharing (share by email) and guest link sharing are both enabled. Disabled - External user sharing (share by email) and guest link sharing are both disabled. ExternalUserSharingOnly - External user sharing (share by email) is enabled, but guest link sharing is disabled. Allowed values `Disabled`, `ExternalUserSharingOnly`, `ExternalUserAndGuestSharing`, `ExistingExternalUserSharingOnly`. @@ -157,6 +169,12 @@ m365 spo tenant settings set [options] `--OrphanedPersonalSitesRetentionPeriod [OrphanedPersonalSitesRetentionPeriod]` : Specifies the number of days after a user's Active Directory account is deleted that their OneDrive for Business content will be deleted. The value range is in days, between 30 and 3650. The default value is 30. +`--CoreRequestFilesLinkExpirationInDays [CoreRequestFilesLinkExpirationInDays]` +: Specifies the number of days before a Request files link expires for all SharePoint sites (not including OneDrive sites). The value can be from 0 to 730 days + +`--ExternalUserExpireInDays [ExternalUserExpireInDays]` +: Specifies the number of days before an external user will expire and be removed from the site collection if the policy is enabled. Value can be from 30 to 730 days + `--DisallowInfectedFileDownload [DisallowInfectedFileDownload]` : Prevents the Download button from being displayed on the Virus Found warning page. Allowed values `true`, `false`. @@ -256,6 +274,9 @@ m365 spo tenant settings set [options] `--DisabledWebPartIds [DisabledWebPartIds]` : Sets disabled web part Ids. Array of GUIDs split by comma. Example: `c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201`. +`--DisabledModernListTemplateIds [DisabledModernListTemplateIds]` +: Sets disabled modern list templates Ids to hide when creating a new list. Array of GUIDs split by comma. Example: `c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201` + `--DisableCustomAppAuthentication [DisableCustomAppAuthentication]` : Configure if ACS-based app-only auth should be disabled or not. Allowed values `true`, `false`. @@ -265,6 +286,84 @@ m365 spo tenant settings set [options] `--EnableAzureADB2BIntegration [EnableAzureADB2BIntegration]` : Enables the preview for OneDrive and SharePoint integration with Microsoft Entra B2B. Allowed values `true`, `false`. Microsoft Entra one-time passcode needs to be enabled for this integration to work. For more information see [http://aka.ms/spo-b2b-integration](https://aka.ms/spo-b2b-integration). +`--EnableAutoNewsDigest [EnableAutoNewsDigest]` +: Enables or disables SharePoint auto news digest. Allowed values `true`, `false`. + +`--AllowCommentsTextOnEmailEnabled [AllowCommentsTextOnEmailEnabled]` +: Allows showing surrounding document context in email notification when user mentioned in comments. Allowed values `true`, `false`. + +`--CommentsOnFilesDisabled [CommentsOnFilesDisabled]` +: Disables or enables commenting functionality on files. Allowed values `true`, `false`. + +`--DisableAddToOneDrive [DisableAddToOneDrive]` +: Disables or enables `Add shortcut to OneDrive` feature in SharePoint document libraries. Allowed values `true`, `false`. + +`--DisableBackToClassic [DisableBackToClassic]` +: Disables or enables the back to classic link for libraries and lists. Allowed values `true`, `false`. + +`--DisableListSync [DisableListSync]` +: Disables or enables sync functionality for lists. Allowed values `true`, `false`. + +`--DisablePersonalListCreation [DisablePersonalListCreation]` +: Allows creating personal lists within the OneDrive for Business site of the user. Allowed values `true`, `false`. + +`--ViewInFileExplorerEnabled [ViewInFileExplorerEnabled]` +: Enables or disables the ability to use View in Explorer in Microsoft Edge. Allowed values `true`, `false`. + +`--AllowGuestUserShareToUsersNotInSiteCollection [AllowGuestUserShareToUsersNotInSiteCollection]` +: Allows guest users to share to users not in the site collection. Allowed values `true`, `false`. + +`--BlockSendLabelMismatchEmail [BlockSendLabelMismatchEmail]` +: Allows blocking of the automated e-mail being sent when somebody uploads a document to a site that's protected with a sensitivity label and their document has a higher priority sensitivity label than the sensitivity label applied to the site. Allowed values `true`, `false`. + +`--CoreDefaultLinkToExistingAccess [CoreDefaultLinkToExistingAccess]` +: Sets default share link to existing access on core partition. Allowed values `true`, `false`. + +`--CoreRequestFilesLinkEnabled [CoreRequestFilesLinkEnabled]` +: Enables or disables the Request files link 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. Allowed values `true`, `false`. + +`--DisableDocumentLibraryDefaultLabeling [DisableDocumentLibraryDefaultLabeling]` +: Allows tenant admins to disable the capability of configuring a default sensitivity label for a document library. Allowed values `true`, `false`. + +`--DisableVivaConnectionsAnalytics [DisableVivaConnectionsAnalytics]` +: Specifies whether Viva Connections Analytics is disabled or enabled on the tenant. Allowed values `true`, `false`. + +`--DisplayNamesOfFileViewersInSpo [DisplayNamesOfFileViewersInSpo]` +: Allows configuring whether display name of people who view the file are visible in the property pane of the site in SharePoint site collection. Allowed values `true`, `false`. + +`--EnableAIPIntegration [EnableAIPIntegration]` +: Specifies whether Azure Information Protection (AIP) should be enabled on the tenant. Allowed values `true`, `false`. + +`--EnableRestrictedAccessControl [EnableRestrictedAccessControl]` +: Specifies whether the policy which determines Restricted Access Control Policy is enabled. Allowed values `true`, `false`. + +`--ExternalUserExpirationRequired [ExternalUserExpirationRequired]` +: Specifies whether to enable the external user expiration policy, where external users will be expired and removed from the site collection. Allowed values `true`, `false`. + +`--HideSyncButtonOnDocLib [HideSyncButtonOnDocLib]` +: Enables or disables Sync button on all document libraries in SharePoint Team sites. Allowed values `true`, `false`. + +`--IncludeAtAGlanceInShareEmails [IncludeAtAGlanceInShareEmails]` +: Enables or disables At A Glance feature in the sharing e-mails. Allowed values `true`, `false`. + +`--InformationBarriersSuspension [InformationBarriersSuspension]` +: Allows suspension of the information barriers feature in a Microsoft 365 tenant. Allowed values `true`, `false`. + +`--IsFluidEnabled [IsFluidEnabled]` +: Specifies whether Fluid components are enabled or disabled in the tenant. Allowed values `true`, `false`. + +`--IsWBFluidEnabled [IsWBFluidEnabled]` +: Specifies whether Whiteboard is enabled or disabled for OneDrive for Business users. Allowed values `true`, `false`. + +`--IsCollabMeetingNotesFluidEnabled [IsCollabMeetingNotesFluidEnabled]` +: Specifies whether CollabMeetingNotes Fluid Framework is enabled or disabled. Allowed values `true`, `false`. + +`--IsEnableAppAuthPopUpEnabled [IsEnableAppAuthPopUpEnabled]` +: Enables or disables users in the organization to authenticate SharePoint applications using popups. Allowed values `true`, `false`. + +`--IsLoopEnabled [IsLoopEnabled]` +: Enables or disables the loop components in the tenant. Allowed values `true`, `false`. + `--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]` : Syncs Azure B2B Management Policies. Allowed values `true`, `false`. For more information, see [SharePoint and OneDrive integration with Microsoft Entra B2B](https://aka.ms/spo-b2b-integration). ``` diff --git a/src/m365/spo/commands/tenant/tenant-settings-set.spec.ts b/src/m365/spo/commands/tenant/tenant-settings-set.spec.ts index a20c790634..f55aab75ad 100644 --- a/src/m365/spo/commands/tenant/tenant-settings-set.spec.ts +++ b/src/m365/spo/commands/tenant/tenant-settings-set.spec.ts @@ -139,7 +139,6 @@ describe(commands.TENANT_SETTINGS_SET, () => { }); assert.strictEqual(request.lastCall.args[0].data, `{6648899e-a042-6000-ee90-5bfa05d08b79}{6648899e-a042-6000-ee90-5bfa05d08b77}`); - }); it('sends xml as array of guids for option disabledWebPartIds', async () => { @@ -154,6 +153,18 @@ describe(commands.TENANT_SETTINGS_SET, () => { assert.strictEqual(request.lastCall.args[0].data, `{6648899e-a042-6000-ee90-5bfa05d08b79}{6648899e-a042-6000-ee90-5bfa05d08b77}`); }); + it('sends xml as array of guids for option disabledModernListTemplateIds', async () => { + const request = defaultRequestsSuccessStub(); + + await command.action(logger, { + options: { + DisabledModernListTemplateIds: '6648899e-a042-6000-ee90-5bfa05d08b79,6648899e-a042-6000-ee90-5bfa05d08b77' + } + }); + + assert.strictEqual(request.lastCall.args[0].data, `{6648899e-a042-6000-ee90-5bfa05d08b79}{6648899e-a042-6000-ee90-5bfa05d08b77}`); + }); + it('sends xml for multiple options specified', async () => { const request = defaultRequestsSuccessStub(); @@ -203,11 +214,11 @@ describe(commands.TENANT_SETTINGS_SET, () => { }, 5, { "_ObjectType_": "Microsoft.Online.SharePoint.TenantAdministration.Tenant", "_ObjectIdentity_": "6648899e-a042-6000-ee90-5bfa05d08b79|908bed80-a04a-4433-b4a0-883d9847d11d:ea1787c6-7ce2-4e71-be47-5e0deb30f9ee\nTenant", "AllowDownloadingNonWebViewableFiles": true, "AllowedDomainListForSyncClient": [ - ], "AllowEditing": true, "AllowLimitedAccessOnUnmanagedDevices": false, "ApplyAppEnforcedRestrictionsToAdHocRecipients": true, "BccExternalSharingInvitations": false, "BccExternalSharingInvitationsList": null, "BlockAccessOnUnmanagedDevices": false, "BlockDownloadOfAllFilesForGuests": false, "BlockDownloadOfAllFilesOnUnmanagedDevices": false, "BlockDownloadOfViewableFilesForGuests": false, "BlockDownloadOfViewableFilesOnUnmanagedDevices": false, "BlockMacSync": false, "CommentsOnSitePagesDisabled": false, "CompatibilityRange": "15,15", "ConditionalAccessPolicy": 0, "DefaultLinkPermission": 1, "DefaultSharingLinkType": 1, "DisabledWebPartIds": null, "DisableReportProblemDialog": false, "DisallowInfectedFileDownload": false, "DisplayNamesOfFileViewers": true, "DisplayStartASiteOption": false, "EmailAttestationReAuthDays": 30, "EmailAttestationRequired": false, "EnableGuestSignInAcceleration": false, "EnableMinimumVersionRequirement": true, "ExcludedFileExtensionsForSyncClient": [ + ], "AllowEditing": true, "AllowLimitedAccessOnUnmanagedDevices": false, "ApplyAppEnforcedRestrictionsToAdHocRecipients": true, "BccExternalSharingInvitations": false, "BccExternalSharingInvitationsList": null, "BlockAccessOnUnmanagedDevices": false, "BlockDownloadOfAllFilesForGuests": false, "BlockDownloadOfAllFilesOnUnmanagedDevices": false, "BlockDownloadOfViewableFilesForGuests": false, "BlockDownloadOfViewableFilesOnUnmanagedDevices": false, "BlockMacSync": false, "CommentsOnSitePagesDisabled": false, "CompatibilityRange": "15,15", "ConditionalAccessPolicy": 0, "DefaultLinkPermission": 1, "DefaultSharingLinkType": 1, "DisabledWebPartIds": null, "DisabledModernListTemplateIds": null, "DisableReportProblemDialog": false, "DisallowInfectedFileDownload": false, "DisplayNamesOfFileViewers": true, "DisplayStartASiteOption": false, "EmailAttestationReAuthDays": 30, "EmailAttestationRequired": false, "EnableGuestSignInAcceleration": false, "EnableMinimumVersionRequirement": true, "ExcludedFileExtensionsForSyncClient": [ "" - ], "ExternalServicesEnabled": true, "FileAnonymousLinkType": 2, "FilePickerExternalImageSearchEnabled": true, "FolderAnonymousLinkType": 2, "HideSyncButtonOnODB": false, "IPAddressAllowList": "", "IPAddressEnforcement": false, "IPAddressWACTokenLifetime": 15, "IsHubSitesMultiGeoFlightEnabled": false, "IsMultiGeo": false, "IsUnmanagedSyncClientForTenantRestricted": false, "IsUnmanagedSyncClientRestrictionFlightEnabled": true, "LegacyAuthProtocolsEnabled": true, "LimitedAccessFileType": 1, "NoAccessRedirectUrl": null, "NotificationsInOneDriveForBusinessEnabled": true, "NotificationsInSharePointEnabled": true, "NotifyOwnersWhenInvitationsAccepted": true, "NotifyOwnersWhenItemsReshared": true, "ODBAccessRequests": 0, "ODBMembersCanShare": 0, "OfficeClientADALDisabled": false, "OneDriveForGuestsEnabled": false, "OneDriveStorageQuota": 1048576, "OptOutOfGrooveBlock": false, "OptOutOfGrooveSoftBlock": false, "OrphanedPersonalSitesRetentionPeriod": 30, "OwnerAnonymousNotification": true, "PermissiveBrowserFileHandlingOverride": false, "PreventExternalUsersFromResharing": true, "ProvisionSharedWithEveryoneFolder": false, "PublicCdnAllowedFileTypes": "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF", "PublicCdnEnabled": false, "PublicCdnOrigins": [ + ], "ExternalServicesEnabled": true, "FileAnonymousLinkType": 2, "FilePickerExternalImageSearchEnabled": true, "FolderAnonymousLinkType": 2, "HideSyncButtonOnODB": false, "IPAddressAllowList": "", "IPAddressEnforcement": false, "IPAddressWACTokenLifetime": 15, "IsHubSitesMultiGeoFlightEnabled": false, "IsMultiGeo": false, "IsUnmanagedSyncClientForTenantRestricted": false, "IsUnmanagedSyncClientRestrictionFlightEnabled": true, "LegacyAuthProtocolsEnabled": true, "LimitedAccessFileType": 1, "NoAccessRedirectUrl": null, "ArchiveRedirectUrl": null, "ConditionalAccessPolicyErrorHelpLink": null, "CustomizedExternalSharingServiceUrl": null, "LabelMismatchEmailHelpLink": null, "NotificationsInOneDriveForBusinessEnabled": true, "NotificationsInSharePointEnabled": true, "NotifyOwnersWhenInvitationsAccepted": true, "NotifyOwnersWhenItemsReshared": true, "ODBAccessRequests": 0, "ODBMembersCanShare": 0, "OfficeClientADALDisabled": false, "OneDriveForGuestsEnabled": false, "OneDriveStorageQuota": 1048576, "OptOutOfGrooveBlock": false, "OptOutOfGrooveSoftBlock": false, "OrphanedPersonalSitesRetentionPeriod": 30, "CoreRequestFilesLinkExpirationInDays": 30, "ExternalUserExpireInDays": 30, "OwnerAnonymousNotification": true, "PermissiveBrowserFileHandlingOverride": false, "PreventExternalUsersFromResharing": true, "ProvisionSharedWithEveryoneFolder": false, "PublicCdnAllowedFileTypes": "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF", "PublicCdnEnabled": false, "PublicCdnOrigins": [ - ], "RequireAcceptingAccountMatchInvitedAccount": true, "RequireAnonymousLinksExpireInDays": -1, "ResourceQuota": 66700, "ResourceQuotaAllocated": 13668, "RootSiteUrl": "https:\u002f\u002fprufinancial.sharepoint.com", "SearchResolveExactEmailOrUPN": false, "SharingAllowedDomainList": "microsoft.com pramerica.ie pramericacdsdev.com prudential.com prufinancial.onmicrosoft.com", "SharingBlockedDomainList": "deloitte.com", "SharingCapability": 1, "SharingDomainRestrictionMode": 1, "ShowAllUsersClaim": false, "ShowEveryoneClaim": false, "ShowEveryoneExceptExternalUsersClaim": false, "ShowNGSCDialogForSyncOnODB": true, "ShowPeoplePickerSuggestionsForGuestUsers": false, "SignInAccelerationDomain": "", "SocialBarOnSitePagesDisabled": false, "SpecialCharactersStateInFileFolderNames": 1, "StartASiteFormUrl": null, "StorageQuota": 4448256, "StorageQuotaAllocated": 676508312, "SyncPrivacyProfileProperties": true, "UseFindPeopleInPeoplePicker": false, "UsePersistentCookiesForExplorerView": false, "UserVoiceForFeedbackEnabled": false, "HideDefaultThemes": true, "DisableCustomAppAuthentication": true, "CommentsOnListItemsDisabled": false + ], "RequireAcceptingAccountMatchInvitedAccount": true, "RequireAnonymousLinksExpireInDays": -1, "ResourceQuota": 66700, "ResourceQuotaAllocated": 13668, "RootSiteUrl": "https:\u002f\u002fprufinancial.sharepoint.com", "SearchResolveExactEmailOrUPN": false, "SharingAllowedDomainList": "microsoft.com pramerica.ie pramericacdsdev.com prudential.com prufinancial.onmicrosoft.com", "SharingBlockedDomainList": "deloitte.com", "SharingCapability": 1, "SharingDomainRestrictionMode": 1, "ShowAllUsersClaim": false, "ShowEveryoneClaim": false, "ShowEveryoneExceptExternalUsersClaim": false, "ShowNGSCDialogForSyncOnODB": true, "ShowPeoplePickerSuggestionsForGuestUsers": false, "SignInAccelerationDomain": "", "SocialBarOnSitePagesDisabled": false, "SpecialCharactersStateInFileFolderNames": 1, "StartASiteFormUrl": null, "StorageQuota": 4448256, "StorageQuotaAllocated": 676508312, "SyncPrivacyProfileProperties": true, "UseFindPeopleInPeoplePicker": false, "UsePersistentCookiesForExplorerView": false, "UserVoiceForFeedbackEnabled": false, "HideDefaultThemes": true, "DisableCustomAppAuthentication": true, "CommentsOnListItemsDisabled": false, "EnableAutoNewsDigest": true, "AllowCommentsTextOnEmailEnabled": true, "CommentsOnFilesDisabled": false, "DisableAddToOneDrive": false, "DisableBackToClassic": false, "DisableListSync": false, "DisablePersonalListCreation": false, "ViewInFileExplorerEnabled": true, "AllowGuestUserShareToUsersNotInSiteCollection": false, "BlockSendLabelMismatchEmail": false, "CoreDefaultLinkToExistingAccess": false, "CoreRequestFilesLinkEnabled": true, "DisableDocumentLibraryDefaultLabeling": false, "DisableVivaConnectionsAnalytics": false, "DisplayNamesOfFileViewersInSpo": false, "EnableAIPIntegration": true, "EnableRestrictedAccessControl": false, "ExternalUserExpirationRequired": false, "HideSyncButtonOnDocLib": true, "IncludeAtAGlanceInShareEmails": true, "InformationBarriersSuspension": false, "IsFluidEnabled": true, "IsWBFluidEnabled": true, "IsCollabMeetingNotesFluidEnabled": true, "IsEnableAppAuthPopUpEnabled": true, "IsLoopEnabled": true } ]); } diff --git a/src/m365/spo/commands/tenant/tenant-settings-set.ts b/src/m365/spo/commands/tenant/tenant-settings-set.ts index f113230bf1..32f90cc973 100644 --- a/src/m365/spo/commands/tenant/tenant-settings-set.ts +++ b/src/m365/spo/commands/tenant/tenant-settings-set.ts @@ -16,6 +16,10 @@ interface Options extends GlobalOptions { MaxCompatibilityLevel: number; ExternalServicesEnabled?: boolean; NoAccessRedirectUrl: string; + ArchiveRedirectUrl: string; + ConditionalAccessPolicyErrorHelpLink: string; + CustomizedExternalSharingServiceUrl: string; + LabelMismatchEmailHelpLink: string; SharingCapability: string; // DisplayStartASiteOption?: boolean; StartASiteFormUrl: string; @@ -60,6 +64,8 @@ interface Options extends GlobalOptions { CommentsOnSitePagesDisabled?: boolean; SocialBarOnSitePagesDisabled?: boolean; OrphanedPersonalSitesRetentionPeriod?: number; + CoreRequestFilesLinkExpirationInDays?: number; + ExternalUserExpireInDays: number; DisallowInfectedFileDownload?: boolean; DefaultLinkPermission: string; // ConditionalAccessPolicy: string; // @@ -94,9 +100,36 @@ interface Options extends GlobalOptions { ExcludedFileExtensionsForSyncClient: string[]; AllowedDomainListForSyncClient: string[]; DisabledWebPartIds: string[]; + DisabledModernListTemplateIds: string[]; DisableCustomAppAuthentication?: boolean; CommentsOnListItemsDisabled?: boolean; EnableAzureADB2BIntegration?: boolean; + EnableAutoNewsDigest?: boolean; + AllowCommentsTextOnEmailEnabled?: boolean; + CommentsOnFilesDisabled?: boolean; + DisableAddToOneDrive?: boolean; + DisableBackToClassic?: boolean; + DisableListSync?: boolean; + DisablePersonalListCreation?: boolean; + ViewInFileExplorerEnabled?: boolean; + AllowGuestUserShareToUsersNotInSiteCollection?: boolean; + BlockSendLabelMismatchEmail?: boolean; + CoreDefaultLinkToExistingAccess?: boolean; + CoreRequestFilesLinkEnabled?: boolean; + DisableDocumentLibraryDefaultLabeling?: boolean; + DisableVivaConnectionsAnalytics?: boolean; + DisplayNamesOfFileViewersInSpo?: boolean; + EnableAIPIntegration?: boolean; + EnableRestrictedAccessControl?: boolean; + ExternalUserExpirationRequired?: boolean; + HideSyncButtonOnDocLib?: boolean; + IncludeAtAGlanceInShareEmails?: boolean; + InformationBarriersSuspension?: boolean; + IsFluidEnabled?: boolean; + IsWBFluidEnabled?: boolean; + IsCollabMeetingNotesFluidEnabled?: boolean; + IsEnableAppAuthPopUpEnabled?: boolean; + IsLoopEnabled?: boolean; SyncAadB2BManagementPolicy?: boolean; } @@ -156,6 +189,32 @@ class SpoTenantSettingsSetCommand extends SpoCommand { 'DisableCustomAppAuthentication', 'CommentsOnListItemsDisabled', 'EnableAzureADB2BIntegration', + 'EnableAutoNewsDigest', + 'AllowCommentsTextOnEmailEnabled', + 'CommentsOnFilesDisabled', + 'DisableAddToOneDrive', + 'DisableBackToClassic', + 'DisableListSync', + 'DisablePersonalListCreation', + 'ViewInFileExplorerEnabled', + 'AllowGuestUserShareToUsersNotInSiteCollection', + 'BlockSendLabelMismatchEmail', + 'CoreDefaultLinkToExistingAccess', + 'CoreRequestFilesLinkEnabled', + 'DisableDocumentLibraryDefaultLabeling', + 'DisableVivaConnectionsAnalytics', + 'DisplayNamesOfFileViewersInSpo', + 'EnableAIPIntegration', + 'EnableRestrictedAccessControl', + 'ExternalUserExpirationRequired', + 'HideSyncButtonOnDocLib', + 'IncludeAtAGlanceInShareEmails', + 'InformationBarriersSuspension', + 'IsFluidEnabled', + 'IsWBFluidEnabled', + 'IsCollabMeetingNotesFluidEnabled', + 'IsEnableAppAuthPopUpEnabled', + 'IsLoopEnabled', 'SyncAadB2BManagementPolicy' ]; @@ -182,6 +241,10 @@ class SpoTenantSettingsSetCommand extends SpoCommand { MinCompatibilityLevel: (!(!args.options.MinCompatibilityLevel)).toString(), MaxCompatibilityLevel: (!(!args.options.MaxCompatibilityLevel)).toString(), NoAccessRedirectUrl: (!(!args.options.NoAccessRedirectUrl)).toString(), + ArchiveRedirectUrl: (!(!args.options.ArchiveRedirectUrl)).toString(), + ConditionalAccessPolicyErrorHelpLink: (!(!args.options.ConditionalAccessPolicyErrorHelpLink)).toString(), + CustomizedExternalSharingServiceUrl: (!(!args.options.CustomizedExternalSharingServiceUrl)).toString(), + LabelMismatchEmailHelpLink: (!(!args.options.LabelMismatchEmailHelpLink)).toString(), SharingCapability: (!(!args.options.SharingCapability)).toString(), StartASiteFormUrl: (!(!args.options.StartASiteFormUrl)).toString(), SignInAccelerationDomain: (!(!args.options.SignInAccelerationDomain)).toString(), @@ -200,6 +263,8 @@ class SpoTenantSettingsSetCommand extends SpoCommand { FileAnonymousLinkType: (!(!args.options.FileAnonymousLinkType)).toString(), FolderAnonymousLinkType: (!(!args.options.FolderAnonymousLinkType)).toString(), OrphanedPersonalSitesRetentionPeriod: (!(!args.options.OrphanedPersonalSitesRetentionPeriod)).toString(), + CoreRequestFilesLinkExpirationInDays: (!(!args.options.CoreRequestFilesLinkExpirationInDays)).toString(), + ExternalUserExpireInDays: (!(!args.options.ExternalUserExpireInDays)).toString(), DefaultLinkPermission: (!(!args.options.DefaultLinkPermission)).toString(), ConditionalAccessPolicy: (!(!args.options.ConditionalAccessPolicy)).toString(), EmailAttestationReAuthDays: (!(!args.options.EmailAttestationReAuthDays)).toString(), @@ -208,6 +273,7 @@ class SpoTenantSettingsSetCommand extends SpoCommand { SpecialCharactersStateInFileFolderNames: (!(!args.options.SpecialCharactersStateInFileFolderNames)).toString(), ExcludedFileExtensionsForSyncClient: (!(!args.options.ExcludedFileExtensionsForSyncClient)).toString(), DisabledWebPartIds: (!(!args.options.DisabledWebPartIds)).toString(), + DisabledModernListTemplateIds: (!(!args.options.DisabledModernListTemplateIds)).toString(), AllowedDomainListForSyncClient: (!(!args.options.AllowedDomainListForSyncClient)).toString() }; @@ -238,6 +304,18 @@ class SpoTenantSettingsSetCommand extends SpoCommand { { option: '--NoAccessRedirectUrl [NoAccessRedirectUrl]' }, + { + option: '--ArchiveRedirectUrl [ArchiveRedirectUrl]' + }, + { + option: '--ConditionalAccessPolicyErrorHelpLink [ConditionalAccessPolicyErrorHelpLink]' + }, + { + option: '--CustomizedExternalSharingServiceUrl [CustomizedExternalSharingServiceUrl]' + }, + { + option: '--LabelMismatchEmailHelpLink [LabelMismatchEmailHelpLink]' + }, { option: '--SharingCapability [SharingCapability]', autocomplete: this.getSharingCapabilities() @@ -403,6 +481,12 @@ class SpoTenantSettingsSetCommand extends SpoCommand { { option: '--OrphanedPersonalSitesRetentionPeriod [OrphanedPersonalSitesRetentionPeriod]' }, + { + option: '--CoreRequestFilesLinkExpirationInDays [CoreRequestFilesLinkExpirationInDays]' + }, + { + option: '--ExternalUserExpireInDays [ExternalUserExpireInDays]' + }, { option: '--DisallowInfectedFileDownload [DisallowInfectedFileDownload]', autocomplete: ['true', 'false'] @@ -531,6 +615,9 @@ class SpoTenantSettingsSetCommand extends SpoCommand { { option: '--DisabledWebPartIds [DisabledWebPartIds]' }, + { + option: '--DisabledModernListTemplateIds [DisabledModernListTemplateIds]' + }, { option: '--DisableCustomAppAuthentication [DisableCustomAppAuthentication]', autocomplete: ['true', 'false'] @@ -543,6 +630,110 @@ class SpoTenantSettingsSetCommand extends SpoCommand { option: '--EnableAzureADB2BIntegration [EnableAzureADB2BIntegration]', autocomplete: ['true', 'false'] }, + { + option: '--EnableAutoNewsDigest [EnableAutoNewsDigest]', + autocomplete: ['true', 'false'] + }, + { + option: '--AllowCommentsTextOnEmailEnabled [AllowCommentsTextOnEmailEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--CommentsOnFilesDisabled [CommentsOnFilesDisabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisableAddToOneDrive [DisableAddToOneDrive]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisableBackToClassic [DisableBackToClassic]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisableListSync [DisableListSync]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisablePersonalListCreation [DisablePersonalListCreation]', + autocomplete: ['true', 'false'] + }, + { + option: '--ViewInFileExplorerEnabled [ViewInFileExplorerEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--AllowGuestUserShareToUsersNotInSiteCollection [AllowGuestUserShareToUsersNotInSiteCollection]', + autocomplete: ['true', 'false'] + }, + { + option: '--BlockSendLabelMismatchEmail [BlockSendLabelMismatchEmail]', + autocomplete: ['true', 'false'] + }, + { + option: '--CoreDefaultLinkToExistingAccess [CoreDefaultLinkToExistingAccess]', + autocomplete: ['true', 'false'] + }, + { + option: '--CoreRequestFilesLinkEnabled [CoreRequestFilesLinkEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisableDocumentLibraryDefaultLabeling [DisableDocumentLibraryDefaultLabeling]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisableVivaConnectionsAnalytics [DisableVivaConnectionsAnalytics]', + autocomplete: ['true', 'false'] + }, + { + option: '--DisplayNamesOfFileViewersInSpo [DisplayNamesOfFileViewersInSpo]', + autocomplete: ['true', 'false'] + }, + { + option: '--EnableAIPIntegration [EnableAIPIntegration]', + autocomplete: ['true', 'false'] + }, + { + option: '--EnableRestrictedAccessControl [EnableRestrictedAccessControl]', + autocomplete: ['true', 'false'] + }, + { + option: '--ExternalUserExpirationRequired [ExternalUserExpirationRequired]', + autocomplete: ['true', 'false'] + }, + { + option: '--HideSyncButtonOnDocLib [HideSyncButtonOnDocLib]', + autocomplete: ['true', 'false'] + }, + { + option: '--IncludeAtAGlanceInShareEmails [IncludeAtAGlanceInShareEmails]', + autocomplete: ['true', 'false'] + }, + { + option: '--InformationBarriersSuspension [InformationBarriersSuspension]', + autocomplete: ['true', 'false'] + }, + { + option: '--IsFluidEnabled [IsFluidEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--IsWBFluidEnabled [IsWBFluidEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--IsCollabMeetingNotesFluidEnabled [IsCollabMeetingNotesFluidEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--IsEnableAppAuthPopUpEnabled [IsEnableAppAuthPopUpEnabled]', + autocomplete: ['true', 'false'] + }, + { + option: '--IsLoopEnabled [IsLoopEnabled]', + autocomplete: ['true', 'false'] + }, { option: '--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]', autocomplete: ['true', 'false'] @@ -621,7 +812,7 @@ class SpoTenantSettingsSetCommand extends SpoCommand { optionValue = this.mapEnumToInt(optionKey, args.options[optionKey]); } - if (['AllowedDomainListForSyncClient', 'DisabledWebPartIds'].indexOf(optionKey) > -1) { + if (['AllowedDomainListForSyncClient', 'DisabledWebPartIds', 'DisabledModernListTemplateIds'].indexOf(optionKey) > -1) { // the XML has to be represented as array of guids let valuesXml: string = ''; optionValue.split(',').forEach((value: string) => {