Skip to content

Commit

Permalink
Added IsDataAccessInCardDesignerEnabled to Set-PnPTenant and `Get…
Browse files Browse the repository at this point in the history
…-PnPTenant` (#3635)

* Added `-IsDataAccessInCardDesignerEnabled` to `Set-PnPTenant` which allows for configuring Viva Connections Adaptive Cards to connect to backend services for their data

* Adding PR reference

---------

Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
  • Loading branch information
KoenZomers and gautamdsheth authored Dec 15, 2023
1 parent ecf3fa3 commit fe743a5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions documentation/Set-PnPTenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>
[-MassDeleteNotificationDisabled <Boolean>]
[-BusinessConnectivityServiceDisabled <Boolean>]
[-EnableSensitivityLabelForPDF <Boolean>]
[-IsDataAccessInCardDesignerEnabled <Boolean>]
[-Force] [-Connection <PnPConnection>]
```

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

Expand Down
9 changes: 9 additions & 0 deletions src/Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/Commands/Model/SPOTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -219,6 +221,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext)
IsLoopEnabled = tenant.IsLoopEnabled;
EnableAzureADB2BIntegration = tenant.EnableAzureADB2BIntegration;
SiteOwnerManageLegacyServicePrincipalEnabled = tenant.SiteOwnerManageLegacyServicePrincipalEnabled;
IsDataAccessInCardDesignerEnabled = tenant.IsDataAccessInCardDesignerEnabled;

try
{
Expand Down

0 comments on commit fe743a5

Please sign in to comment.