Forum Discussion
Thomsch
Jul 21, 2020Iron Contributor
Add ServiceAccount member to all teams via Powershell
I created a small powershell script to add my ServiceAccount user to all teams via "Add-TeamUser". Unfortunately I get this error message Add-TeamUser : Error occurred while executing Add-TeamUser
...
teams1535
Jul 22, 2020Former Employee
as per the error message "
Insufficient privileges to complete the operation
user should have admin access to add owner or member to Team. Above command is working fine. Please check is it now working for some teams or all teams you are facing the same issue. You can check GraphApi also to do the above job.