Skip to content

[BUG] Get-PnPTeamsUser, Get-PnPMicrosoft365Group, Get-PnPMicrosoft365GroupOwner doesn't return all user properties (GCC) #870

@mdressel

Description

@mdressel

Reporting an Issue or Missing Feature

I have used Get-PnPTeamsUser, Get-PnPMicrosoft365Group, and Get-PnpMicrosoft365GroupOwner to try to get the list of owners for a Team. When I output the results I receive a valid Id value, but all other properties are null.

I also used Graph Explorer to determine if it is returning the correct values and from what I can tell it does work.

Expected behavior

I would expect all available properties to be properly populated.

Actual behavior

Only the property that is populated properly is the Id property.

Steps to reproduce behavior

$connection = Connect-PnPOnline -Url https://$domain.sharepoint.com -ClientId {CLIENTID} -Tenant stateofmichigan.onmicrosoft.com -CertificateBase64Encoded $certString -certificatePassword $certPass.Password

$group = Get-PnPMicrosoft365Group -Identity $DisplayNameOrGroupId -IncludeSiteUrl -IncludeOnwers

$owners = Get-PnPMicrosoft365GroupOwner -Identity $group.GroupId

$owners1 = Get-PnPTeamsUser -Identity $group.GroupId -Role Owner

$group

$owners

$owners1

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

1.6.0

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

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • [X ] Other : Azure Automation
  • [X ] Other : GCC

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCC/GCCHGCC or GCCH tenantazure-automationIncludes Azure Functions or Azure RunbooksbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions