pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets

Home Page:https://pnp.github.io/powershell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ToddKlindt opened this issue · comments

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?

  • PnP PowerShell for SharePoint 2013
  • PnP PowerShell for SharePoint 2016
  • PnP PowerShell for SharePoint 2019
  • PnP PowerShell for SharePoint Online

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

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?

  • MSI Installed downloaded from GitHub
  • Installed through the PowerShell Gallery with Install-Module
  • Other means