Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
merged conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvanhunen committed Apr 10, 2020
2 parents 4476b2c + cec882c commit 40a0c30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Added
- Added Set-PnPKnowledgeHubSite, Get-PnPKnowledgeHubSite and Remove-PnPKnowledgeHubSite cmdlets
- Added Register-PnPTenantAppCatalog to create and register a new Tenant App Catalog
- Added `-FolderServerRelativeUrl` argument to `Get-PnPListItem` to allow for retrieval of only those list items located in a specific folder inside a list [PR #2546](https://github.com/SharePoint/PnP-PowerShell/pull/2546)
- Added `IncludeHasTeam` flag to `Get-PnPUnifiedGroup` to include a `HasTeam` flag for each returned Office 365 Group indicating if a Microsoft Team has been set up for it [PR #2612](https://github.com/SharePoint/PnP-PowerShell/pull/2612)

### Changed
- Connect-PnPOnline with clientid and certificate will now, if API permissions have been granted for the Graph work with the PnP Graph Cmdlets. [PR # 2515](https://github.com/SharePoint/PnP-PowerShell/pull/2515)
Expand Down
9 changes: 8 additions & 1 deletion Commands/Graph/GetUnifiedGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ namespace SharePointPnP.PowerShell.Commands.Graph
Code = "PS:> Get-PnPUnifiedGroup -Identity $group",
Remarks = "Retrieves a specific Office 365 Group based on its object instance",
SortOrder = 5)]
[CmdletExample(
Code = "PS:> Get-PnPUnifiedGroup -IncludeIfHasTeam",
Remarks = "Retrieves all the Office 365 Groups and checks for each of them if it has a Microsoft Team provisioned for it",
SortOrder = 6)]
public class GetUnifiedGroup : PnPGraphCmdlet
{
[Parameter(Mandatory = false, HelpMessage = "The Identity of the Office 365 Group.")]
Expand All @@ -43,6 +47,9 @@ public class GetUnifiedGroup : PnPGraphCmdlet
[Parameter(Mandatory = false, HelpMessage = "Include Classification value of Office 365 Groups.")]
public SwitchParameter IncludeClassification;

[Parameter(Mandatory = false, HelpMessage = "Include a flag for every Office 365 Group if it has a Microsoft Team provisioned for it. This will slow down the retrieval of Office 365 Groups so only use it if you need it.")]
public SwitchParameter IncludeHasTeam;

protected override void ExecuteCmdlet()
{
UnifiedGroupEntity group = null;
Expand All @@ -55,7 +62,7 @@ protected override void ExecuteCmdlet()
else
{
// Retrieve all the groups
groups = UnifiedGroupsUtility.ListUnifiedGroups(AccessToken, includeSite: !ExcludeSiteUrl.IsPresent, includeClassification:IncludeClassification.IsPresent);
groups = UnifiedGroupsUtility.ListUnifiedGroups(AccessToken, includeSite: !ExcludeSiteUrl.IsPresent, includeClassification:IncludeClassification.IsPresent, includeHasTeam: IncludeHasTeam.IsPresent);
}

if (group != null)
Expand Down

0 comments on commit 40a0c30

Please sign in to comment.