powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Get-PnPHubSiteChild returns results that are not children of the specified hub

Open AndyBoyet opened this issue 1 year ago • 1 comments

Notice

Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:

Reporting an Issue or Missing Feature

Get-PnPHubSiteChild returns results that are inconsistent with the Admin center. These results are not children of the specified hub.

Expected behavior

Get-PnPHubSiteChild returns results that are verifiable against the admin center

Actual behavior

When using Get-PnPHubSiteChild, some sites are returned showing associations with hub sites that do not exist according to the admin center.

Steps to reproduce behavior

Run Get-PnPHubSiteChild and compare with Admin Center hub site settings. It seems to happen on sites with multiple levels of hub sites.

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable) 2.3.0

Which operating system/environment are you running PnP PowerShell on?

  • [ X] Windows

AndyBoyet avatar Feb 20 '24 16:02 AndyBoyet

Is there a way how to reproduce this issue? I created just a random HubSite and associated three SharePoint sitecollection to it. All those results are reflected running this cmdlet.

markgort86 avatar May 29 '24 20:05 markgort86

Closing this due to lack of response and also we can't repro this as well at our end.

gautamdsheth avatar Aug 09 '24 18:08 gautamdsheth