Microsoft Tech Community Live:  Microsoft Teams Edition
November 09, 2021, 08:00 AM - 12:00 PM (PST)

adding multiple members in Microsoft team through powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-2265266%22%20slang%3D%22en-US%22%3Eadding%20multiple%20members%20in%20Microsoft%20team%20through%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2265266%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20jc-center%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CDIV%20class%3D%22js-vote-count%20grid--cell%20fc-black-500%20fs-title%20grid%20fd-column%20ai-center%22%3E0%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3Ei%20am%20adding%20multiple%20users%20as%20members%20to%20Microsoft%20teams%20through%3CSPAN%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fadd-unifiedgrouplinks%3Fview%3Dexchange-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ecommand%2Cfollowing%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsteams%2Fforum%2Fmsteams_tfe-msteams_chatg-msteams_suboth%2Fhow-to-add-multiple-members-at-the-same-time-in%2Fccf20146-12db-454f-93b2-37cb59aa5858%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3Earticle.%20Users%20are%20getting%20added%20in%20office%20365%20groups%20and%20reflecting%20in%20Microsoft%20teams%20admin%20center%20at%20the%20same%20time.%20but%20users%20and%20not%20reflecting%20in%20MS%20teams%20(%3CA%20href%3D%22https%3A%2F%2Fadmin.teams.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fadmin.teams.microsoft.com%2F%3C%2FA%3E)%20even%20after%2024%20hours.%20i%20am%20even%20not%20getting%20any%20other%20way%20to%20automate%20adding%20users%20to%20MS%20teams.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2265266%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
0

i am adding multiple users as members to Microsoft teams through this  command,following this article. Users are getting added in office 365 groups and reflecting in Microsoft teams admin center at the same time. but users and not reflecting in MS teams (https://admin.teams.microsoft.com/) even after 24 hours. i am even not getting any other way to automate adding users to MS teams.

3 Replies
Adding members to the Team using the Microsoft 365 Groups cmdlet should work with no problems and reflect automatically in Teams, so the behavior your are having is not expected. As an alternative you might add users to Teams using Teams PS cmdlets: https://docs.microsoft.com/en-us/powershell/module/teams/add-teamuser?WT.mc_id=M365-MVP-4015732&view...
@Juan but i can't add multiple members using Add-TeamUser cmdlet to team.
Why not? You could have the Team Members to be added in a CSV file or even in an array object so you could iterate through them and easily add the Team members to the Team: https://joguerre.medium.com/adding-bulk-users-from-a-csv-file-to-a-microsoft-teams-team-374414b9d8c9