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 @@ -2569,6 +2569,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -KnowledgeAgentEnabled

Enables or disables the Knowledge Agent feature tenant-wide. When set to $true, the Knowledge Agent functionality is enabled for the tenant; when set to $false it is disabled. Use this parameter to control tenant-level Knowledge Agent behavior.

```yaml
Type: Boolean
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowSensitivityLabelOnRecords
Allows sensitivity label on records.

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 @@ -429,6 +429,9 @@ public class SetTenant : PnPSharePointOnlineAdminCmdlet
[Parameter(Mandatory = false)]
public bool? AIBuilderEnabled { get; set; }

[Parameter(Mandatory = false)]
public bool? KnowledgeAgentEnabled { get; set; }

[Parameter(Mandatory = false)]
public bool? AllowSensitivityLabelOnRecords { get; set; }

Expand Down Expand Up @@ -1668,6 +1671,11 @@ protected override void ExecuteCmdlet()
Tenant.DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites = DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites.Value;
modified = true;
}
if (KnowledgeAgentEnabled.HasValue)
{
Tenant.KnowledgeAgentEnabled = KnowledgeAgentEnabled.Value;
modified = true;
}
if (GuestSharingGroupAllowListInTenantByPrincipalIdentity != null)
{
if (GuestSharingGroupAllowListInTenantByPrincipalIdentity.Length > 0)
Expand Down
Loading