pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

SiteUrl property of UnifiedGroup is blank for a Restored SharePoint Modern Site #2450

Open AsishP opened 4 years ago

AsishP commented 4 years ago

Reporting an Issue or Missing Feature

The returned object for Group using Get-PnPUnifiedGroup is missing SiteUrl. This happens when I delete a group and then restore the group. After restoration, the site url is not retrieved and gives an unknown error found. Below is a screenshot of the issue.

image

However, when the same group is accessed via Exchange Online PowerShell, the SharePointSiteUrl is populated fine.

image

Expected behavior

The object returned by Get-PnPUnifiedGroup should provide the SiteUrl

Actual behavior

There is an unspecified error found on the site Url.

Steps to reproduce behavior

Steps:

  1. Create a group
  2. Then delete the group in SharePoint admin center
  3. Then restore the group from SharePoint admin center from Recycle bin
  4. Use Azure AD app with application permissions to connect to MS Graph in PnP PowerShell. Then do Get-PnPUnifiedGroup and check the siteurl property

Which version of the PnP-PowerShell Cmdlets are you using?

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

3.16.1912.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

AsishP commented 4 years ago

Actually just found out that the 'SiteUrl' property is blank for existing sites also. It was all working yesterday, don't know why is it breaking today

Aritas-com commented 4 years ago

I currently have the same issue for the Classification. Always returns blank.

baskb commented 3 years ago

I have the same using (new) Get-PnPMicrosoft365Group command. SiteUrl is empty.