Skip to content
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
15 changes: 15 additions & 0 deletions documentation/Set-PnPTenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>
[-EnableAutoNewsDigest <Boolean>]
[-CommentsOnListItemsDisabled <Boolean>]
[-CommentsOnFilesDisabled <Boolean>]
[-AllowCommentsTextOnEmailEnabled <Boolean>]
[-DisableBackToClassic <Boolean>]
[-InformationBarriersSuspension <Boolean>]
[-AllowFilesWithKeepLabelToBeDeletedODB <Boolean>]
Expand Down Expand Up @@ -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.

Expand Down
8 changes: 8 additions & 0 deletions src/Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down