SOLVED

How to add/remove member team in microsoft teams by command line?

%3CLINGO-SUB%20id%3D%22lingo-sub-728307%22%20slang%3D%22en-US%22%3EHow%20to%20add%2Fremove%20member%20team%20in%20microsoft%20teams%20by%20command%20line%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728307%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bplease%20suggest%20help%20me%20how%20to%20add%2Fremove%20member%20team%20in%20microsoft%20teams%20by%20command%20line%3F%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-728307%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-728324%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20add%2Fremove%20member%20team%20in%20microsoft%20teams%20by%20command%20line%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728324%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F234118%22%20target%3D%22_blank%22%3E%40Tien%20Ngo%20Thanh%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20are%20the%20articles%20you%20need.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fadd-teamuser%3Fview%3Dteams-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fadd-teamuser%3Fview%3Dteams-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3EAdd-TeamUser%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-GroupId%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-number%22%3E31%3C%2FSPAN%3E%3CSPAN%3Ef1ff6c-d48c-%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-number%22%3E4%3C%2FSPAN%3E%3CSPAN%3Ef8a-b2e1-abca7fd399df%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-User%3C%2FSPAN%3E%3CSPAN%3E%20dmx%40example.com%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fremove-teamuser%3Fview%3Dteams-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fremove-teamuser%3Fview%3Dteams-ps%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-pscommand%22%3ERemove-TeamUser%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-GroupId%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-number%22%3E31%3C%2FSPAN%3E%3CSPAN%3Ef1ff6c-d48c-%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-number%22%3E4%3C%2FSPAN%3E%3CSPAN%3Ef8a-b2e1-abca7fd399df%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%20-User%3C%2FSPAN%3E%3CSPAN%3E%20dmx%40example.com%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20questionBest%2C%20Chris%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

Hi

     please suggest help me how to add/remove member team in microsoft teams by command line?

Best Regards,

Thanks

1 Reply
Highlighted
Solution

Hi @Tien Ngo Thanh

Here are the articles you need.

https://docs.microsoft.com/en-us/powershell/module/teams/add-teamuser?view=teams-ps

 

For example: 

Add-TeamUser -GroupId 31f1ff6c-d48c-4f8a-b2e1-abca7fd399df -User dmx@example.com

https://docs.microsoft.com/en-us/powershell/module/teams/remove-teamuser?view=teams-ps

 

For example:

Remove-TeamUser -GroupId 31f1ff6c-d48c-4f8a-b2e1-abca7fd399df -User dmx@example.com


Hope that answers your question

Best, Chris