Forum Discussion
oskarkuus
Apr 26, 2023Brass Contributor
How to get last activity on all teams in my tenant?
Is it possible to get the last activity in a team from all teams in my tenant.
I want this to determin what teams have not been active in a specific amount of days, so i can do some clean up work.
But i can not find a way to get this info unless i use the teamsteamactivity report but that is only within last 180 days. I want the last update date on all teams.
Can i do this?
2 Replies
- The report is your best option. Other than that, you can query each team for any "signs" of activity, but that usually involves calls against multiple APIs. Here's an example script: https://office365itpros.com/2022/03/14/microsoft-365-groups-teams-activity-report/
- oskarkuusBrass ContributorTo bad the report then only go back 180 days. I wont detect dead teams that are a year old as i understand it.