Error occurred while executing Add-TeamUser
AdminMRE
26
Reputation points
Good morning
I am trying to add users as owner to a Teams group via Graph and when I link the first line I get the error:
Add-TeamUser : Error occurred while executing Add-TeamUser
Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
InnerError:
RequestId: 244f0e23-4160-4db4-a4fc-bd340e2460c6
DateTimeStamp: 2021-10-21T08:48:39
HttpStatusCode: Authorization_RequestDenied
At line:1 char:1
- Add-TeamUser -GroupId "a2fac853-9115-4095-ae1a-52a0065babfb" -User Ve ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Add-TeamUser], ApiException
- FullyQualifiedErrorId : Microsoft.TeamsCmdlets.PowerShell.Custom.ErrorHandling.ApiException,Microsoft.TeamsCmdlets.PowerShell.Custom.AddTeamUser
This command has worked in the past, I don't know what happened, can you help me?
Thank you very much