Skip to content

[FEATURE] Get-PnPTeamsTeam Filter Parameter #1301

@YuriySamorodov

Description

@YuriySamorodov

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…}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions