Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Added Set-PnPTenant -EnableAutoNewsDigest option #2901

Merged
merged 3 commits into from
Oct 5, 2020
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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
## [3.26.2010.0 - unreleased]

### Added
- Added Register-PnPManagementShellAccess cmdlets to register correct access required for the multi-tenant application PnP Management Shell which is used behind the scenes of the Provisioning Engine for certain actions towards SharePoint Online.
- Added `Set-PnPTenant -EnableAutoNewsDigest` option to disable the automatic news digest mails sent to end users [PR #2901](https://github.com/pnp/PnP-PowerShell/pull/2901)
- Added `Register-PnPManagementShellAccess` cmdlet to register correct access required for the multi-tenant application PnP Management Shell which is used behind the scenes of the Provisioning Engine for certain actions towards SharePoint Online.
- Added the description being shown of a Site Script when running `Get-PnPSiteScript` [PR #2895](https://github.com/pnp/PnP-PowerShell/pull/2895)

### Changed

### Contributors
- Koen Zomers [koenzomers]
- Gautam Sheth [gautamdsheth]

## [3.25.2009.1]
Expand Down
8 changes: 8 additions & 0 deletions Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ The only two characters that can be managed at this time are the # and % charact
[Parameter(Mandatory = false, HelpMessage = "Boolean indicating if Azure Information Protection (AIP) should be enabled on the tenant. For more information, see https://docs.microsoft.com/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files#use-powershell-to-enable-support-for-sensitivity-labels")]
public bool? EnableAIPIntegration;

[Parameter(Mandatory = false, HelpMessage = "Boolean indicating if a news digest should automatically be sent to end users to inform them about news that they may have missed. On by default. For more information, see https://aka.ms/autonewsdigest")]
public bool? EnableAutoNewsDigest;

protected override void ExecuteCmdlet()
{
ClientContext.Load(Tenant);
Expand Down Expand Up @@ -972,6 +975,11 @@ protected override void ExecuteCmdlet()
Tenant.EnableAIPIntegration = EnableAIPIntegration.Value;
isDirty = true;
}
if (EnableAutoNewsDigest.HasValue)
{
Tenant.EnableAutoNewsDigest = EnableAutoNewsDigest.Value;
isDirty = true;
}
if (isDirty)
{
ClientContext.ExecuteQueryRetry();
Expand Down