diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f3779a46..b28222966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,7 +39,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Improved `Register-PnPAzureADApp` and `Register-PnPManagementShellAccess` cmdlets to reuse existing HTTP client instead of creating a new one. [#2682](https://github.com/pnp/powershell/pull/2682) - Improved `Register-PnPAzureADApp` cmdlet based on compiler warnings. [#2682](https://github.com/pnp/powershell/pull/2682) - `Connect-PnPOnline` will now throw a much clearer error message if the site to be connected doesn't exist when using the legacy Client Id with Secret (ACS) authentication mode. [#2707](https://github.com/pnp/powershell/pull/2707) -- Properties of `Get-PnPAzureADServicePrincipal` are now all typed instead of some of them returning unparsed JSON fragments [#2717](https://github.com/pnp/powershell/pull/2717) +- Properties of `Get-PnPAzureADServicePrincipal` are now all typed instead of some of them returning unparsed JSON fragments. [#2717](https://github.com/pnp/powershell/pull/2717) +- Marked `Get-PnPSubscribeSharePointNewsDigest` and `Set-PnPSubscribeSharePointNewsDigest` as obsolete as the implementation behind these feates has been changed in SharePoint Online causing them no longer to work. At present there's no alternative for this that we can call into thus we will have to remove these in a future version. [#2720](https://github.com/pnp/powershell/pull/2720) ### Removed diff --git a/documentation/Get-PnPSubscribeSharePointNewsDigest.md b/documentation/Get-PnPSubscribeSharePointNewsDigest.md index 79e828244..96380a7fe 100644 --- a/documentation/Get-PnPSubscribeSharePointNewsDigest.md +++ b/documentation/Get-PnPSubscribeSharePointNewsDigest.md @@ -19,6 +19,8 @@ You must connect to the tenant admin website (https://tenant-admin.sharepoint.co Retrieves if the SharePoint News Digest mails are enabled or disabled for a particular user. +Note: The implementation behind this in SharePoint Online has changed causing this cmdlet to no longer work. Unfortunately there's no alternative way to call into this functionality from PnP PowerShell. We therefore have to remove this cmdlet in a future version. At present it does not work anymore. + ## SYNTAX ```powershell diff --git a/documentation/Set-PnPSubscribeSharePointNewsDigest.md b/documentation/Set-PnPSubscribeSharePointNewsDigest.md index 35b7157ac..2699a1809 100644 --- a/documentation/Set-PnPSubscribeSharePointNewsDigest.md +++ b/documentation/Set-PnPSubscribeSharePointNewsDigest.md @@ -19,6 +19,8 @@ You must connect to the tenant admin website (https://tenant-admin.sharepoint.co Enables or disables the SharePoint News Digest mails for a particular user. Note that the disabling option is still experimental and may not work and may be removed again in the future. +Note: The implementation behind this in SharePoint Online has changed causing this cmdlet to no longer work. Unfortunately there's no alternative way to call into this functionality from PnP PowerShell. We therefore have to remove this cmdlet in a future version. At present it does not work anymore. + ## SYNTAX ```powershell diff --git a/src/Commands/UserProfiles/GetSubscribeSharePointNewsDigest.cs b/src/Commands/UserProfiles/GetSubscribeSharePointNewsDigest.cs index 4f1ee8af6..571842d7c 100644 --- a/src/Commands/UserProfiles/GetSubscribeSharePointNewsDigest.cs +++ b/src/Commands/UserProfiles/GetSubscribeSharePointNewsDigest.cs @@ -5,11 +5,13 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using System; namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Get, "PnPSubscribeSharePointNewsDigest")] [OutputType(typeof(SubscribeSharePointNewsDigestStatus))] + [Obsolete("The implementation behind this feature has changed in SharePoint Online making it impossible at the moment to call this using PnP PowerShell. This cmdlet therefore no longer works and will be removed in a future version.")] public class GetSubscribeSharePointNewsDigest : PnPAdminCmdlet { [Parameter(Mandatory = true, Position = 0)] diff --git a/src/Commands/UserProfiles/SetSubscribeSharePointNewsDigest.cs b/src/Commands/UserProfiles/SetSubscribeSharePointNewsDigest.cs index d894f8d21..21a67a50f 100644 --- a/src/Commands/UserProfiles/SetSubscribeSharePointNewsDigest.cs +++ b/src/Commands/UserProfiles/SetSubscribeSharePointNewsDigest.cs @@ -5,11 +5,13 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using System; namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Set, "PnPSubscribeSharePointNewsDigest")] [OutputType(typeof(string))] + [Obsolete("The implementation behind this feature has changed in SharePoint Online making it impossible at the moment to call this using PnP PowerShell. This cmdlet therefore no longer works and will be removed in a future version.")] public class SetSubscribeSharePointNewsDigest : PnPAdminCmdlet { [Parameter(Mandatory = true, Position = 0)]