Skip to main content

One post tagged with "PowerShell"

PowerShell automation guidance for Microsoft 365.

View All Tags

Faster end-of-year Teams cleanup with Microsoft Graph batching

· 10 min read
Dwayne Selsig
Microsoft Certified Azure Solutions Architect | Microsoft 365 & Education

The last school bell has rung. Students are wrapping up, teachers are closing their final assignments, and Microsoft 365 administrators inherit one more end-of-year job: putting last year's class Teams away properly.

I feed Somtoday data into School Data Sync with a tool I built, and SDS turns that data into the classes and Teams used during the year. In my end-of-year process, every class Team provisioned through SDS is archived. But archiving is only half the job: the current SDS cleanup does not remove students, and removing those memberships one by one quickly becomes a mountain of Graph requests. Tony Redmond's batching article arrived at exactly the right moment.