pnp / PnP-PowerShell

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

Get-PnPMicrosoft365Group reports HasTeam as False when there's a Team #3002

Open ToddKlindt opened 3 years ago

ToddKlindt commented 3 years ago

Reporting an Issue or Missing Feature

Get-PnPMicrosoft365Group reports HasTeam as False when there's a Team associated with the Group.

Expected behavior

The HasTeam property should be True if the Group has a Team.

Actual behavior

There are several Groups that have Teams, as evidenced by the Get-PnPTeamsTeam cmdlet, and by going into Teams.

image

Steps to reproduce behavior

Connect-PnPOnline -Url https://m365x435798-admin.sharepoint.com -Tenant M365x435798.onmicrosoft.com -ClientId d43fa81d-0533-4157-a24e-6358d13edf87 -Thumbprint 1B29A6A72AABBDEE1C6777DEEB2AF990201A1C82

Get-PnPMicrosoft365Group -IncludeHasTeam | select DisplayName, HasTeam, GroupId Get-PnPTeamsTeam | select DisplayName, GroupId, Visibility, IsArchived

Here are the permissions the app has: image

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

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

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?