Skip to content

spo hubsite list fails when using includeAssociatedSites switch #1180

@phillipharding

Description

@phillipharding

When using the spo hubsite list --includeAssociatedSites -o json command to return Hubsites with associated sites, the command fails because it's looking at the root SharePoint site instead of the SharePoint Admin site, the error message returned is;

{"message":"List 'DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS' does not exist at site with URL 'https://<tenant>.sharepoint.com'."}

At line 75 in hubsite-list.ts

https://github.com/pnp/office365-cli/blob/cd657ed0fbdd5bec319d846f2dce906390f28dc2/src/o365/spo/commands/hubsite/hubsite-list.ts#L75

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions