Hey there, i got two questions regarding Microsoft Teams.
I was wondering what the best practice is to limit the creation of teams (in Microsoft Teams..) to specific users only? Currently everyone in our infrastructure is able to create teams - which is absolutely not to our liking. Does this have to be done via a security group or are there any other options yet?
Also, is it possible yet to get a full list of all existing teams including the members that joined the teams? There are a few powershell scripts online, but sadly they only show me teams that i am a member of (and i was running those scripts as a Global Admin).
Sadly the link you posted for my second question doesn't really explain how to get a list of all teams including the members of the team. It still seems like its an requirement to be a member of each team as well if you want to export a list of all teams + members (even as a global admin!)
The best way I've found to get a list of all Teams and Owners/Members for now is to use the UnifiedGroups commandlets. These aren't only Teams, since they include all Groups but a Team requires a Group so it works in a pinch. Depending on how pretty you want the data to be, you could script this out but this may help:
List of all Groups: Get-UnifiedGroup
Details of a specific Group: Get-UnifiedGroup -identity [groupname]
List Owners of a Group: Get-UnifiedGroupLinks -identity [groupname] -linktype owner
List of Members of a Group: Get-UnifiedGroupLinks -identity [groupname] -linktype member