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 14, 2022jasonbrl - Did you get chance to check above suggestion?
jasonbrl
Jul 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.- Sayali-MSFTJul 22, 2022
Microsoft
jasonbrl - We do not support Guest users to do admin actions, PowerShell cmdlets are meant for organization's users, not guest users.
If you are referring to CSP partner users, then we allow Powershell access.