pnpcore
pnpcore copied to clipboard
URL Filter option for all tenant sites
Category
- [x] Feature request
Describe the feature
I like to query only a subset of all tenant sites. With PNP Powershell I can set a query based on url.
Describe the solution you'd like
I need to set a filter for the url in code ... await adminContext.GetSiteCollectionManager().GetSiteCollectionsAsync(filter: SiteCollectionFilter.ExcludePersonalSites)
Similar like
Get-PnPTenantSite -Filter "Url -like '/sites/myprefix_'" -Detailed
or
Get-SPOSite -Filter { Url -like "contoso.sharepoint.com/sites/18" }