From 327a2ade4b2b539b73f9763a840fbc134355ffca Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Fri, 10 Nov 2023 16:01:59 +0100 Subject: [PATCH] Added Information Barriers information to the output of `Get-PnPTenantSite` (#3556) * Added Information Barriers information to the output of `Get-PnPTenantSite` * Added PR reference --------- Co-authored-by: Gautam Sheth --- CHANGELOG.md | 1 + src/Commands/Model/SPOSite.cs | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49abfff91..c35e20efa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added `-RelativeUrl` parameter to `Connect-PnPOnline` cmdlet to allow specifying custom URLs for usage with `-WebLogin` method. [#3530](https://github.com/pnp/powershell/pull/3530) - Added `-RetryCount` to `Submit-PnPSearchQuery` which allows for specifying the number of retries to perform when an exception occurs [#3528](https://github.com/pnp/powershell/pull/3528) - Added `-MailNickname` parameter to `Set-PnPMicrosoft365Group` cmdlet to allow changing of this property on a Microsoft 365 Group [#3529](https://github.com/pnp/powershell/pull/3529) +- Added Information Barriers information to the output of `Get-PnPTenantSite` [#3556](https://github.com/pnp/powershell/pull/3556) - Added `RequestFilesLinkEnabled` and `RequestFilesLinkExpirationInDays` to the output of `Get-PnPSite` [#3557](https://github.com/pnp/powershell/pull/3557) - Added `CoreRequestFilesLinkEnabled`, `CoreRequestFilesLinkExpirationInDays`, `OneDriveRequestFilesLinkEnabled`, `OneDriveRequestFilesLinkExpirationInDays`, `BusinessConnectivityServiceDisabled` to the output of `Get-PnPTenant` [#3557](https://github.com/pnp/powershell/pull/3557) - Added `-BusinessConnectivityServiceDisabled` parameter to `Set-PnPTenant` cmdlt to allow disabling the Business Connectivity Service [#3562](https://github.com/pnp/powershell/pull/3562) diff --git a/src/Commands/Model/SPOSite.cs b/src/Commands/Model/SPOSite.cs index 975dfd1bf..e0fdcc15c 100644 --- a/src/Commands/Model/SPOSite.cs +++ b/src/Commands/Model/SPOSite.cs @@ -68,11 +68,18 @@ public class SPOSite public string Title { get; set; } public string Url { get; set; } public int WebsCount { get; set; } + + public string InformationBarrierMode { get; set; } + public Guid[] InformationBarrierSegments { get; set; } + public Guid[] InformationBarrierSegmentsToAdd { get; set; } + public Guid[] InformationBarrierSegmentsToRemove { get; set; } + public bool? RequestFilesLinkEnabled { private set; get; } public int? RequestFilesLinkExpirationInDays { private set; get; } - + #endregion + public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus) { AllowDownloadingNonWebViewableFiles = props.AllowDownloadingNonWebViewableFiles; @@ -135,9 +142,12 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus) Title = props.Title; WebsCount = props.WebsCount; Url = props.Url; + InformationBarrierMode = props.IBMode; + InformationBarrierSegments = props.IBSegments; + InformationBarrierSegmentsToAdd = props.IBSegmentsToAdd; + InformationBarrierSegmentsToRemove = props.IBSegmentsToRemove; RequestFilesLinkEnabled = props.RequestFilesLinkEnabled; RequestFilesLinkExpirationInDays = props.RequestFilesLinkExpirationInDays; } - } } \ No newline at end of file