Skip to content

Commit

Permalink
Merge pull request #3268 from ganesh-sanap/set-pnptenant-allowcomment…
Browse files Browse the repository at this point in the history
…stextonemailenabled

Added AllowCommentsTextOnEmailEnabled parameter to Set-PnPTenant
  • Loading branch information
gautamdsheth authored Jul 16, 2023
2 parents b93de4a + b5a1050 commit e64109e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
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

0 comments on commit e64109e

Please sign in to comment.