Forum Discussion

rhupf's avatar
rhupf
Brass Contributor
Jan 08, 2024

How to remove a user from all Teams with Graph SDK Powershell

I have a script that I run for terminated accounts that has this line to remove the user from all Teams they are a member of.   get-team -User $username | foreach {Remove-TeamUser -GroupId $_.group...

Resources