Skip to content

Commit

Permalink
Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
wilecoyotegenius committed Nov 17, 2023
1 parent bd51fbf commit 4c56e98
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ public class SetTenant : PnPAdminCmdlet
[Parameter(Mandatory = false)]
public bool? BusinessConnectivityServiceDisabled { get; set; }

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

protected override void ExecuteCmdlet()
{
AdminContext.Load(Tenant);
Expand Down Expand Up @@ -1344,6 +1347,12 @@ protected override void ExecuteCmdlet()
modified = true;
}

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

if (BlockDownloadFileTypePolicy.HasValue)
{
if (!BlockDownloadFileTypePolicy.Value)
Expand Down
11 changes: 11 additions & 0 deletions src/Commands/Model/SPOTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ public class SPOTenant

public bool? BusinessConnectivityServiceDisabled { private set; get; }

public bool? EnableSensitivityLabelForPDF { private set; get; }

#endregion

public SPOTenant(Tenant tenant, ClientContext clientContext)
Expand Down Expand Up @@ -642,6 +644,15 @@ public SPOTenant(Tenant tenant, ClientContext clientContext)
OneDriveRequestFilesLinkEnabled = tenant.OneDriveRequestFilesLinkEnabled;
OneDriveRequestFilesLinkExpirationInDays = tenant.OneDriveRequestFilesLinkExpirationInDays;
BusinessConnectivityServiceDisabled = tenant.BusinessConnectivityServiceDisabled;

try
{
EnableSensitivityLabelForPDF = tenant.EnableSensitivityLabelForPDF;
}
catch
{
EnableSensitivityLabelForPDF = false;
}
}
}
}

0 comments on commit 4c56e98

Please sign in to comment.