Extract all team names

Frequent Contributor

Hi all,


I want to extract all team names and found that the below useful PowerShell script resource.


However, it is prompting for Consent on behalf of my organisation to PnP.PowerShell app. Please suggest how I can ensure to our security team that we can trust the publisher. Does it also send any notification to any users? Does organisation typically include / record in change management process for apps access?


Otherwise, I am considering this as the alternative PowerShell script which I believe does not require consent -


Many thanks!



3 Replies
I’ll also suggest using this tool to make a report of all teams with even more information!

You should worry about the consent! It’s just approving the correct permissions for the app in your tenant
Yes, as Chris said! This tool actually pulls this from the graph
Related Conversations
Date Extraction
Marco Verace in Excel on
1 Replies
Data Extraction
Seth Pontiff in Excel on
6 Replies