diff --git a/CHANGELOG.md b/CHANGELOG.md index eb534c584..4acdaad11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added +- Added `-IsDataAccessInCardDesignerEnabled` to `Set-PnPTenant` which allows for configuring Viva Connections Adaptive Cards to connect to backend services for their data [#3635](https://github.com/pnp/powershell/pull/3635) + +### Contributors + +- Koen Zomers [koenzomers] + ## [2.3.0] ### Added diff --git a/documentation/Set-PnPTenant.md b/documentation/Set-PnPTenant.md index a544bd6ae..ad17f73f2 100644 --- a/documentation/Set-PnPTenant.md +++ b/documentation/Set-PnPTenant.md @@ -136,6 +136,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames [-MassDeleteNotificationDisabled ] [-BusinessConnectivityServiceDisabled ] [-EnableSensitivityLabelForPDF ] + [-IsDataAccessInCardDesignerEnabled ] [-Force] [-Connection ] ``` @@ -672,6 +673,20 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -IsDataAccessInCardDesignerEnabled +Allows turning on support for data access in the Viva Connections Adaptive Card Designer. + +```yaml +Type: Boolean +Parameter Sets: (All) + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -LegacyAuthProtocolsEnabled By default this value is set to $true. diff --git a/src/Commands/Admin/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index aa909b6b9..b33ff3105 100644 --- a/src/Commands/Admin/SetTenant.cs +++ b/src/Commands/Admin/SetTenant.cs @@ -407,6 +407,9 @@ public class SetTenant : PnPAdminCmdlet [Parameter(Mandatory = false)] public bool? EnableSensitivityLabelForPDF { get; set; } + [Parameter(Mandatory = false)] + public bool? IsDataAccessInCardDesignerEnabled { get; set; } + protected override void ExecuteCmdlet() { AdminContext.Load(Tenant); @@ -1353,6 +1356,12 @@ protected override void ExecuteCmdlet() modified = true; } + if (IsDataAccessInCardDesignerEnabled.HasValue) + { + Tenant.IsDataAccessInCardDesignerEnabled = IsDataAccessInCardDesignerEnabled.Value; + modified = true; + } + if (BlockDownloadFileTypePolicy.HasValue) { if (!BlockDownloadFileTypePolicy.Value) diff --git a/src/Commands/Model/SPOTenant.cs b/src/Commands/Model/SPOTenant.cs index 10a506bd7..92170f6dc 100644 --- a/src/Commands/Model/SPOTenant.cs +++ b/src/Commands/Model/SPOTenant.cs @@ -183,6 +183,8 @@ public class SPOTenant public bool? EnableSensitivityLabelForPDF { private set; get; } + public bool? IsDataAccessInCardDesignerEnabled { private set; get; } + #endregion public SPOTenant(Tenant tenant, ClientContext clientContext) @@ -219,6 +221,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext) IsLoopEnabled = tenant.IsLoopEnabled; EnableAzureADB2BIntegration = tenant.EnableAzureADB2BIntegration; SiteOwnerManageLegacyServicePrincipalEnabled = tenant.SiteOwnerManageLegacyServicePrincipalEnabled; + IsDataAccessInCardDesignerEnabled = tenant.IsDataAccessInCardDesignerEnabled; try {