Skip to content

[BUG] - Unable to pass Guid object to Get-PnPTeamsTeam #3495

@reshmee011

Description

@reshmee011

Reporting an Issue

Unable to pass Guid object to Get-PnPTeamsTeam

Expected behavior

Teams should return with Guid object
e.g. $site.GoupId is Guid

$site = Get-PnpTenantSite -Url https://contoso.sharepoint.com/sites/Company311
Get-PnPTeamsTeam -Identity $site.GroupId

Actual behavior

Message below is displayed

Get-PnPTeamsTeam: Cannot bind parameter 'Identity'. Cannot convert the "4aced257-38ee-484c-b441-ce09a71a14ad" value of type "System.Guid" to type "PnP.PowerShell.Commands.Base.PipeBinds.TeamsTeamPipeBind".

Steps to reproduce behavior

$site = Get-PnpTenantSite -Url https://contoso.sharepoint.com/sites/Company311
Get-PnPTeamsTeam -Identity $site.GroupId

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

2.2.0

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

  • Windows

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions