pnpcore icon indicating copy to clipboard operation
pnpcore copied to clipboard

URL Filter option for all tenant sites

Open raclettierer opened this issue 1 month ago • 0 comments

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

Additional context

raclettierer avatar May 29 '24 09:05 raclettierer