powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] Get-PnPTeamsTeam Filter Parameter

Open YuriySamorodov opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. This is a feature requrest

Describe the solution you'd like It would be awesome to have an ability to run something like Get-PnPTeamsTeam -Filter "Name -like ""*Team*""" pretty much the same you can do with Get-ADUser or Get-ADGroup

Describe alternatives you've considered In case of relatively small number of objects the one might want to get all objects first and then filter the list with Where-Object

$teams = Get-PnPTeamsTeam
$teams | where { $_.Name -match "Team" }

However, on the large amount of items PnP would throw an error: image

Additional context

Name              : PnP.PowerShell
Path              : C:\Program Files\PowerShell\Modules\PnP.PowerShell\1.8.18\PnP.PowerShell.psd1
Description       : Microsoft 365 Patterns and Practices PowerShell Cmdlets
ModuleType        : Manifest
Version           : 1.8.18
PreRelease        : nightly
NestedModules     : {PnP.PowerShell}
ExportedFunctions : 
ExportedCmdlets   : {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPAzureADGroupMember…}
ExportedVariables : WebRequestCounter
ExportedAliases   : {Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart, Export-PnPClientSidePage…}

YuriySamorodov avatar Oct 26 '21 19:10 YuriySamorodov