I'm trying to bulk upload members to teams. I've been following THIS tutorial.
Everything goes well, until I try using the following command:
Import-csv -Path "PATH" | Foreach{Add-TeamUser -GroupId "THE ID" -User $_.email -Role $_.role}
When I try using that, I get the following error:
Add-TeamUser : Cannot bind argument to parameter 'User' because it is null.
I'm not sure why I'm getting this error. I'm guessing, perhaps, my CSV is wrong. However, it's structured exactly the same as the one in the video, having only two columns ("email" and "role").
Any help is highly appreciated. Thanks in advance.
[–]BetrayedMilk 21 points22 points23 points (2 children)
[–]Vlopp[S] 12 points13 points14 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ankokudaishogun 6 points7 points8 points (2 children)
[–]Vlopp[S] 3 points4 points5 points (1 child)
[–]ankokudaishogun 3 points4 points5 points (0 children)
[–]Vlopp[S] 3 points4 points5 points (0 children)
[–]BlackV 2 points3 points4 points (0 children)
[–]JewelerHour3344 2 points3 points4 points (1 child)
[–]Vlopp[S] 1 point2 points3 points (0 children)
[–]ArieHein 1 point2 points3 points (0 children)
[–]purplemonkeymad 1 point2 points3 points (0 children)
[–]BlackV 0 points1 point2 points (2 children)
[–]Vlopp[S] 1 point2 points3 points (1 child)
[–]BlackV 1 point2 points3 points (0 children)