Bad Gateway when adding certain users to channel

Copper Contributor

I have a very interesting problem where i get a 502 Bad Gateway error when adding certain users to a team or channel via the graph API.

https://docs.microsoft.com/en-us/graph/api/team-post-members?view=graph-rest-beta&tabs=http

https://docs.microsoft.com/en-us/graph/api/conversationmember-add?view=graph-rest-beta&tabs=http

Both fail for these users. The users are always the same. 

If use the group to add a member to the team

https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-beta&tabs=http

it works for these users. 

But as far as i know there is no equivalent way to add members to channels. 

I couldn't find any obvious difference between the users. If i add them manually via the Teams client there are no problems.

 

Any one got an idea whats the problem or how to solve this?

Thanks

3 Replies

I tried to do the same with official Teams PowerShell Cmdlet and I get the same error. 

ReinhardK_0-1600071340967.png

There seems to be some problem with these particular users.

Have you tried installing Teams PowerShell public preview modue?
I did test it with the latest version from PowerShellGallery: 1.1.5-preview
https://www.powershellgallery.com/packages/MicrosoftTeams/1.1.5-preview