adding multiple members in Microsoft team through powershell

Copper 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