Skip to content

New command: list classic sites #122

@waldekmastykarz

Description

@waldekmastykarz

List available classic sites.

  • command: spo site classic list -f|--filter [filter] -t|--webTemplate [webTemplate] --includeOneDriveSites
  • filter - filter to apply when retrieving sites, eg. to retrieve sites with specific URL fragment, optional
  • webTemplate - only show sites of the specified web template, eg STS#0, optional
  • includeOneDriveSites - include personal sites in the listing, optional
  • 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.GetSitePropertiesFromSharePointByFilters() if the filter or web template 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

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions