Skip to content

Commit

Permalink
Added Information Barriers information to the output of `Get-PnPTenan…
Browse files Browse the repository at this point in the history
…tSite` (#3556)

* Added Information Barriers information to the output of `Get-PnPTenantSite`

* Added PR reference

---------

Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com>
  • Loading branch information
KoenZomers and gautamdsheth authored Nov 10, 2023
1 parent 61d10a1 commit 327a2ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 12 additions & 2 deletions src/Commands/Model/SPOSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

}
}

0 comments on commit 327a2ad

Please sign in to comment.