Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added IsDataAccessInCardDesignerEnabled to Set-PnPTenant and Get-PnPTenant #3635

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
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
Loading