diff --git a/CHANGELOG.md b/CHANGELOG.md index f7d0fbe8f..63559578d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/documentation/Set-PnPTenant.md b/documentation/Set-PnPTenant.md index a534301aa..522e8d2cd 100644 --- a/documentation/Set-PnPTenant.md +++ b/documentation/Set-PnPTenant.md @@ -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 @@ -52,12 +52,12 @@ Set-PnPTenant [-SpecialCharactersStateInFileFolderNames [-DisableBackToClassic ] [-InformationBarriersSuspension ] [-AllowFilesWithKeepLabelToBeDeletedODB ] [-AllowFilesWithKeepLabelToBeDeletedSPO ] [-ExternalUserExpirationRequired ] [-ExternalUserExpireInDays ] [-OneDriveRequestFilesLinkEnabled ] - [-Force] [-Connection ] [] + [-EnableRestrictedAccessControl ] + [-Force] [-Connection ] ``` ## 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. @@ -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 diff --git a/src/Commands/Admin/SetTenant.cs b/src/Commands/Admin/SetTenant.cs index cc75b66ec..2ceb90201 100644 --- a/src/Commands/Admin/SetTenant.cs +++ b/src/Commands/Admin/SetTenant.cs @@ -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; @@ -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; }