Skip to content

Commit e64109e

Browse files
authored
Merge pull request #3268 from ganesh-sanap/set-pnptenant-allowcommentstextonemailenabled
Added AllowCommentsTextOnEmailEnabled parameter to Set-PnPTenant
2 parents b93de4a + b5a1050 commit e64109e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

documentation/Set-PnPTenant.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>
8484
[-EnableAutoNewsDigest <Boolean>]
8585
[-CommentsOnListItemsDisabled <Boolean>]
8686
[-CommentsOnFilesDisabled <Boolean>]
87+
[-AllowCommentsTextOnEmailEnabled <Boolean>]
8788
[-DisableBackToClassic <Boolean>]
8889
[-InformationBarriersSuspension <Boolean>]
8990
[-AllowFilesWithKeepLabelToBeDeletedODB <Boolean>]
@@ -1329,6 +1330,20 @@ Accept pipeline input: False
13291330
Accept wildcard characters: False
13301331
```
13311332

1333+
### -AllowCommentsTextOnEmailEnabled
1334+
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.
1335+
1336+
```yaml
1337+
Type: Boolean
1338+
Parameter Sets: (All)
1339+
1340+
Required: False
1341+
Position: Named
1342+
Default value: None
1343+
Accept pipeline input: False
1344+
Accept wildcard characters: False
1345+
```
1346+
13321347
### -InformationBarriersSuspension
13331348
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.
13341349

src/Commands/Admin/SetTenant.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ public class SetTenant : PnPAdminCmdlet
209209
[Parameter(Mandatory = false)]
210210
public bool? CommentsOnFilesDisabled;
211211

212+
[Parameter(Mandatory = false)]
213+
public bool? AllowCommentsTextOnEmailEnabled;
214+
212215
[Parameter(Mandatory = false)]
213216
public SensitiveByDefaultState? MarkNewFilesSensitiveByDefault;
214217

@@ -971,6 +974,11 @@ protected override void ExecuteCmdlet()
971974
Tenant.CommentsOnFilesDisabled = CommentsOnFilesDisabled.Value;
972975
modified = true;
973976
}
977+
if (AllowCommentsTextOnEmailEnabled.HasValue)
978+
{
979+
Tenant.AllowCommentsTextOnEmailEnabled = AllowCommentsTextOnEmailEnabled.Value;
980+
modified = true;
981+
}
974982
if (MarkNewFilesSensitiveByDefault.HasValue)
975983
{
976984
Tenant.MarkNewFilesSensitiveByDefault = MarkNewFilesSensitiveByDefault.Value;

0 commit comments

Comments
 (0)