Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `Remove-PnPLibraryFileVersionBatchDeleteJob` and `Remove-PnPSiteFileVersionBatchDeleteJob` cmdlets to cancel the job for deleting file versions based on age. [#3799](https://github.com/pnp/powershell/pull/3799)
- Added `Get-PnPLibraryFileVersionExpirationReportJobProgress` and `Get-PnPSiteFileVersionExpirationReportJobProgress` cmdlets to getting the progress for the job for file versions based on age. [#3799](https://github.com/pnp/powershell/pull/3799)
- Added `-UseVersionExpirationReport` parameter to `Get-PnPFileVersion` cmdlet to get the version expiration report for a single file. [#3799](https://github.com/pnp/powershell/pull/3799)
- Added `-DelayDenyAddAndCustomizePagesEnforcement` parameter to `Set-PnPTenant` cmdlet which allows delay of the change to custom script set on the Tenant until mid-November 2024.

### Fixed

Expand Down
31 changes: 20 additions & 11 deletions src/Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public class SetTenant : PnPAdminCmdlet
public bool? ShowPeoplePickerGroupSuggestionsForIB { get; set; }

[Parameter(Mandatory = false)]
public int? OneDriveRequestFilesLinkExpirationInDays { get; set; }
public int? OneDriveRequestFilesLinkExpirationInDays { get; set; }

[Parameter(Mandatory = false)]
public bool? BlockDownloadFileTypePolicy { get; set; }
Expand All @@ -361,13 +361,13 @@ public class SetTenant : PnPAdminCmdlet
public Guid[] ExcludedBlockDownloadGroupIds { get; set; }

[Parameter(Mandatory = false)]
public SwitchParameter Force;
public SwitchParameter Force;

[Parameter(Mandatory = false)]
public string ArchiveRedirectUrl { get; set; }

[Parameter(Mandatory = false)]
public bool? BlockSendLabelMismatchEmail { get; set; }
public bool? BlockSendLabelMismatchEmail { get; set; }

[Parameter(Mandatory = false)]
public MediaTranscriptionPolicyType? MediaTranscription { get; set; }
Expand All @@ -380,13 +380,13 @@ public class SetTenant : PnPAdminCmdlet

[Parameter(Mandatory = false)]
public bool? ReduceTempTokenLifetimeEnabled { get; set; }

[Parameter(Mandatory = false)]
public int? ReduceTempTokenLifetimeValue;

[Parameter(Mandatory = false)]
public bool? ViewersCanCommentOnMediaDisabled { get; set; }

[Parameter(Mandatory = false)]
public bool? AllowGuestUserShareToUsersNotInSiteCollection { get; set; }

Expand All @@ -412,10 +412,13 @@ public class SetTenant : PnPAdminCmdlet
public bool? IsDataAccessInCardDesignerEnabled { get; set; }

[Parameter(Mandatory = false)]
public bool? AppBypassInformationBarriers { get; set;}
public bool? AppBypassInformationBarriers { get; set; }

[Parameter(Mandatory = false)]
public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { get; set; }

[Parameter(Mandatory = false)]
public InformationBarriersMode? DefaultOneDriveInformationBarrierMode { get; set;}
public bool? DelayDenyAddAndCustomizePagesEnforcement;

protected override void ExecuteCmdlet()
{
Expand Down Expand Up @@ -1338,20 +1341,20 @@ protected override void ExecuteCmdlet()
Tenant.AllowGuestUserShareToUsersNotInSiteCollection = AllowGuestUserShareToUsersNotInSiteCollection.Value;
modified = true;
}

if (IncludeAtAGlanceInShareEmails.HasValue)
{
Tenant.IncludeAtAGlanceInShareEmails = IncludeAtAGlanceInShareEmails.Value;
modified = true;
}

if (MassDeleteNotificationDisabled.HasValue)
{
Tenant.MassDeleteNotificationDisabled = MassDeleteNotificationDisabled.Value;
modified = true;
}

if(BusinessConnectivityServiceDisabled.HasValue)
if (BusinessConnectivityServiceDisabled.HasValue)
{
Tenant.BusinessConnectivityServiceDisabled = BusinessConnectivityServiceDisabled.Value;
modified = true;
Expand Down Expand Up @@ -1381,6 +1384,12 @@ protected override void ExecuteCmdlet()
modified = true;
}

if (DelayDenyAddAndCustomizePagesEnforcement.HasValue)
{
Tenant.DelayDenyAddAndCustomizePagesEnforcement = DelayDenyAddAndCustomizePagesEnforcement.Value;
modified = true;
}

if (BlockDownloadFileTypePolicy.HasValue)
{
if (!BlockDownloadFileTypePolicy.Value)
Expand Down Expand Up @@ -1423,7 +1432,7 @@ protected override void ExecuteCmdlet()
}
Tenant.SetBlockDownloadFileTypePolicyExclusionList(ExcludedBlockDownloadGroupIds);
modified = true;
}
}

if (modified)
{
Expand Down