Skip to content

New command: list modern sites #115

@waldekmastykarz

Description

@waldekmastykarz

List all modern sites of the given type.

  • command: spo site list --type [type] -f|--filter [filter]
  • type - type of modern sites to list. Allowed values TeamSite|CommunicationSite, default TeamSite
  • filter - filter to apply when retrieving sites, eg. to retrieve sites with specific URL fragment
  • requires connection to tenant admin site

For each site display URL and title. Get info by mimicking the call to the Tenant.GetSiteProperties() method or Tenant.GetSitePropertiesFromSharePointByFilter() if the filter was passed. The value of the detailed argument doesn't have any effect on the retrieved data. When retrieving available site collections, keep in mind that SharePoint returns up to 300 site collections per batch and it might be necessary to issue the request multiple times to get all of them.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions