From 32009eeeef28ae66097de2e46d356e1185cc5a8e Mon Sep 17 00:00:00 2001 From: Ganesh Sanap Date: Thu, 13 Jul 2023 15:10:20 +0530 Subject: [PATCH] Added AllowCommentsTextOnEmailEnabled parameter to Set-PnTenant --- documentation/Set-PnPTenant.md | 15 +++++++++++++++ src/Commands/Admin/SetTenant.cs | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/documentation/Set-PnPTenant.md b/documentation/Set-PnPTenant.md index 498ba259c..73d5af6a6 100644 --- a/documentation/Set-PnPTenant.md +++ b/documentation/Set-PnPTenant.md @@ -84,6 +84,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames [-EnableAutoNewsDigest ] [-CommentsOnListItemsDisabled ] [-CommentsOnFilesDisabled ] + [-AllowCommentsTextOnEmailEnabled ] [-DisableBackToClassic ] [-InformationBarriersSuspension ] [-AllowFilesWithKeepLabelToBeDeletedODB ] @@ -1329,6 +1330,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AllowCommentsTextOnEmailEnabled +When this parameter is set to true, an email notification that user receives when is mentioned, includes the surrounding document context. Set it to false to disable this feature. + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InformationBarriersSuspension Allows suspension of the information barriers future in a Microsoft 365 tenant. Setting this to $true will disable information barriers, setting this to $false will enable information barriers. For more information, see https://learn.microsoft.com/sharepoint/information-barriers. diff --git a/src/Commands/Admin/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index 4876391c0..e818557fc 100644 --- a/src/Commands/Admin/SetTenant.cs +++ b/src/Commands/Admin/SetTenant.cs @@ -209,6 +209,9 @@ public class SetTenant : PnPAdminCmdlet [Parameter(Mandatory = false)] public bool? CommentsOnFilesDisabled; + [Parameter(Mandatory = false)] + public bool? AllowCommentsTextOnEmailEnabled; + [Parameter(Mandatory = false)] public SensitiveByDefaultState? MarkNewFilesSensitiveByDefault; @@ -971,6 +974,11 @@ protected override void ExecuteCmdlet() Tenant.CommentsOnFilesDisabled = CommentsOnFilesDisabled.Value; modified = true; } + if (AllowCommentsTextOnEmailEnabled.HasValue) + { + Tenant.AllowCommentsTextOnEmailEnabled = AllowCommentsTextOnEmailEnabled.Value; + modified = true; + } if (MarkNewFilesSensitiveByDefault.HasValue) { Tenant.MarkNewFilesSensitiveByDefault = MarkNewFilesSensitiveByDefault.Value;