Add-TeamChannelUser fails with BadGateway - used to work

Philip Caldwell 1 Reputation point
2020-08-26T23:16:01.943+00:00

Add-TeamChannelUser -GroupId XXXXXXXX-YYYY-zzzz-jjjj-TTTTTTTTTTTT -DisplayName "Private Channel Name" -User First.Last@keyman .com used to work. Find now that I'm getting BadGateway errors (below). I'm a global admin in our Office 365 tenancy. I'm an owner of this Team. Sometimes we have to add significant numbers of people to different private channels in a Team. Doing this via Powershell is much faster than via the GUI. An additional issue is that if ever all the other owners of a Private Channel leave the company, any other owner needs this command to get into the channel. This was working but no longer today.

Add-TeamChannelUser : Error occurred while executing Add-TeamChannelUser
Code: BadGateway
Message: Failed to execute backend request.
InnerError:
RequestId: 861489cb-d24e-439e-915f-f163f17a6f47
DateTimeStamp: 2020-08-26T23:02:10
HttpStatusCode: BadGateway
At line:1 char:1

  • Add-TeamChannelUser -GroupId "XXXXXXXX-YYYY-zzzz-jjjj-TTTTTTTTTTTT" - ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Add-TeamChannelUser], ApiException
  • FullyQualifiedErrorId : Microsoft.TeamsCmdlets.PowerShell.Custom.ErrorHandling.ApiException,Microsoft.TeamsCmdle
    ts.PowerShell.Custom.AddTeamChannelUser
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,389 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 62,236 Reputation points MVP
    2020-08-27T06:24:13.05+00:00

    This seems like an issue at the backend, best open a support case.

    No comments