Skip to content

Commit

Permalink
Merge pull request #2513 from KoenZomers/UpdatePR2462
Browse files Browse the repository at this point in the history
Updating parameter naming to match SPO PowerShell Module for restricted access control
  • Loading branch information
gautamdsheth authored Oct 31, 2022
2 parents fb4d62d + d66524f commit 06900d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `Enable-PnPPowerShellTelemetry` cmdlet to enable telemetry collection. [#2432](https://github.com/pnp/powershell/pull/2432)
- Added `Get-PnPAzureADActivityReportSignIn` cmdlet to enable retrieving of Azure AD sign ins. [#2436](https://github.com/pnp/powershell/pull/2436)
- Added support to remove the site collection app catalog by using Id of the site collection in `Remove-PnPSiteCollectionAppCatalog` cmdlet. [#2452](https://github.com/pnp/powershell/pull/2452)
- Added support for `RestrictedAccessControl` parameter to `Set-PnPTenant` and `Set-PnPSite` cmdlets to restrict site access to members of a Microsoft 365 group. [#2462](https://github.com/pnp/powershell/pull/2462)
- Added support for the `EnableRestrictedAccessControl` parameter to `Set-PnPTenant` and `RestrictedAccessControl` for `Set-PnPSite` to restrict site access to members of a Microsoft 365 group. [#2462](https://github.com/pnp/powershell/pull/2462)
- Added `Set-PnPImageListItemColumn` cmdlet to support setting of the new image/thumbnail value for a SharePoint list item.[#2468](https://github.com/pnp/powershell/pull/2468)
- Added `-Filter` parameter to `Get-PnPTeamsTeam` cmdlet to retrieve specific teams based on filter conditions. It supports simple and advanced queries. [#2467](https://github.com/pnp/powershell/pull/2467) , [#2474](https://github.com/pnp/powershell/pull/2474)
- Added `Get-PnPMicrosoft365ExpiringGroup` cmdlet to retrieve Microsoft 365 groups which are nearing expiration.[#2466](https://github.com/pnp/powershell/pull/2466)
Expand Down
12 changes: 6 additions & 6 deletions documentation/Set-PnPTenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ online version: https://pnp.github.io/powershell/cmdlets/Set-PnPTenant.html

* SharePoint: Access to the SharePoint Tenant Administration site

Sets organization-level site collection properties
Sets organization-level tenant properties

## SYNTAX

Expand Down Expand Up @@ -52,12 +52,12 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames <SpecialCharactersState>
[-DisableBackToClassic <Boolean>] [-InformationBarriersSuspension <Boolean>]
[-AllowFilesWithKeepLabelToBeDeletedODB <Boolean>] [-AllowFilesWithKeepLabelToBeDeletedSPO <Boolean>]
[-ExternalUserExpirationRequired <Boolean>] [-ExternalUserExpireInDays <Boolean>] [-OneDriveRequestFilesLinkEnabled <Boolean>]
[-Force] [-Connection <PnPConnection>] [<CommonParameters>]
[-EnableRestrictedAccessControl <Boolean>]
[-Force] [-Connection <PnPConnection>]
```

## DESCRIPTION
Sets organization-level site collection properties such as StorageQuota, StorageQuotaAllocated, ResourceQuota,
ResourceQuotaAllocated, and SiteCreationMode.
Sets organization-level tenant properties which impact the entire tenant.

You must have the SharePoint Online admin or Global admin role to run the cmdlet.

Expand Down Expand Up @@ -1420,8 +1420,8 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -RestrictedAccessControl
To enable restricted access control in SharePoint. You need to wait approximately 1 hour before managing restricted access control for a site collection.
### -EnableRestrictedAccessControl
To enable restricted access control in SharePoint Online. You need to wait approximately 1 hour before managing restricted access control for a site collection.

```yaml
Type: Boolean
Expand Down
6 changes: 3 additions & 3 deletions src/Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public class SetTenant : PnPAdminCmdlet
public bool? OneDriveRequestFilesLinkEnabled;

[Parameter(Mandatory = false)]
public bool? RestrictedAccessControl;
public bool? EnableRestrictedAccessControl;

[Parameter(Mandatory = false)]
public SwitchParameter Force;
Expand Down Expand Up @@ -957,9 +957,9 @@ protected override void ExecuteCmdlet()
modified = true;
}

if (RestrictedAccessControl.HasValue)
if (EnableRestrictedAccessControl.HasValue)
{
Tenant.EnableRestrictedAccessControl = RestrictedAccessControl.Value;
Tenant.EnableRestrictedAccessControl = EnableRestrictedAccessControl.Value;
modified = true;
}

Expand Down

0 comments on commit 06900d8

Please sign in to comment.