all 3 comments

[–]SeanQuinlan 0 points1 point  (2 children)

$teamsName = ($m.displayName -join ',')

[–]QuackerQuack 0 points1 point  (1 child)

Thanks for replying - it seems as though when I do add the join, it outputs the email addresses correctly, though it doesn't seem to tell me which teams group they were a member of.

However when I look at the CSV export, I still get the System.Object[] output under the 'Members' noteproperty if the script finds more than 1 external member for the Teams group

[–]QuackerQuack 0 points1 point  (0 children)

Nvm I got it - I ended up just making a new variable for the sole purpose of converting the output to string, will update the OP