Forum Discussion
jasonbrl
Jul 08, 2022Copper Contributor
AccessToken issue with Connect-MicrosoftTeams
Hi, We're encountering this error when we do Connect-MicrosoftTeams using access tokens. Here's our scenario: Given: Guest user from another Azure tenant that's given admin permiss...
Sayali-MSFT
Microsoft
Jul 13, 2022jasonbrl - Could you please try out with the following command-
Connect-MicrosoftTeams -AccessTokens @($graphtoken, $teamstoken) -AccountId User@company.comSayali-MSFT
Microsoft
Jul 14, 2022jasonbrl - Did you get chance to check above suggestion?
- jasonbrlJul 15, 2022Copper Contributor
Hi Sayali-MSFT , thanks for the suggestion. However when I tried the command, I was getting this error
- Sayali-MSFTJul 19, 2022
Microsoft
jasonbrl -Could you please clarify more, how you are using this cmdlet?- jasonbrlJul 21, 2022Copper ContributorHi Sayali-MSFT,
We are calling `Connect-MicrosoftTeams` on an ASP.NET WebAPI. This api is hosted on a linux container with powershell installed. If we used a user within a tenant, this flow would work. It only fails if a user is a guest within the tenant.