Forum Discussion
DazzaR
Dec 03, 2019Iron Contributor
How do I find Teams created in last 7 days?
Hi, does anyone have a script they could share that answers this simple question - show me Microsoft Teams created in the last 7* days? I need one that I can run using my role of Teams admin and Shar...
- Dec 03, 2019
You can do something like this:
Get-Team | select GroupId | % { Get-UnifiedGroup $_.GroupId | select DisplayName,WhenCreated } | sort WhenCreated
You'll need the Teams module and the ExO cmdlets for the above example to work.
DazzaR
Dec 03, 2019Iron Contributor
VasilMichev So no exchange privilege no reporting on Teams based O365 Groups?
I have the exchange online module installed but no Get-UnifiedGroup command.
Connect-MicrosoftTeams
Get-Team | select GroupId | % { Get-UnifiedGroup $_.GroupId | select DisplayName,WhenCreated } | sort WhenCreated
VasilMichev
Dec 03, 2019MVP
The WhenCreated property is only available for the underlying group, not the Team object, so you need the Exchange permissions.