Skip to content

Get-PnPMicrosoft365GroupOwners returning only PnP.PowerShell.Commands.Model.Microsoft365User #833

Discussion options

You must be logged in to vote

I realized I am getting an object rather than a string, and I needed to get the email property from the object. Here is my fix

$Group = Get-PnPMicrosoft365Group -Identity $Site.GroupId -IncludeOwners
$Emails = ($Group.Owners | Select Email)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxwell-wayne-17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant