Forum Discussion
PhoneMe007
Mar 24, 2021Brass Contributor
Authenticating with an access token Connect-MicrosoftTeams
Has anyone tried authenticating with an access token (using -AadAccessToken or -MsAccessToken)? The old version of New-CsOnlineSession had an -OAuthAccessToken param, which accepted a jwt with the PS ...
- Oct 15, 2021FYI - I raised a ticket, and it should be fixed by mid november.
Issue description:
Cannot properly run Connect-MicrosoftTeams -AccessTokens
Resolution Steps:
Escalated case with our engineering Team
Issue is known bug and currently being fixed
Expecting a fix to go out by NOV mid
Sridevi-MSFT
Apr 05, 2021Brass Contributor
PhoneMe007, Can you please explain more briefly about the issue.
PhoneMe007
Apr 06, 2021Brass Contributor
New-CsOnlineSession has an -OAuthAccessToken param, which accepted a jwt with the Powershell permissions in the scope, which we could obtain silently, and so avoid login to run the Powershell commands. This no longer works for Connect-MicrosoftTeams with any of the voice related cmdlets and functions. We can obtain the token but Powershell returns an error.
- SajAccess4May 03, 2021Copper ContributorSridevi-MSFT Have you been able to find a solution?
- Sridevi-MSFTMay 04, 2021Brass Contributor
SajAccess4 I have taken this to Engineering team will update you immediately once I get any inputs from them.
- priyachadsMay 11, 2021Copper ContributorI am facing the same issue on connecting to the Teams module using an access token. Although the command doesnt throw and error, running Skype commands gives me this for the command "Get-CsTeamsCallingPolicy"
Error:
Get-CsOnlineSession : Run Connect-MicrosoftTeams before running cmdlets.