User Profile
NMLVS
Brass Contributor
Joined 5 years ago
User Widgets
Recent Discussions
Re: Authenticating with an access token Connect-MicrosoftTeams
FYI - 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 mid31KViews6likes43CommentsRe: Authenticating with an access token Connect-MicrosoftTeams
I got this working by rolling back to an older preview version. Install-Module -Name MicrosoftTeams -RequiredVersion "2.3.2-preview" -AllowPrerelease -force Import-Module MicrosoftTeams -RequiredVersion 2.3.2 $ApplicationId = 'xx' $ApplicationSecret = 'xx' $TenantID = 'xx' $UPN = "admin@xx" $ReqTokenBody = @{ Grant_Type = "client_credentials" client_Id = $ApplicationId Client_Secret = $ApplicationSecret Scope = "https://graph.microsoft.com/.default" } $graph_TokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$TenantID/oauth2/v2.0/token" -Method POST -Body $ReqTokenBody $teams_ReqTokenBody = @{ Grant_Type = "client_credentials" client_Id = $ApplicationId Client_Secret = $ApplicationSecret Scope = "48ac35b8-9aa8-4d74-927d-1f4a14a0b239/.default" } $teams_TokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$TenantID/oauth2/v2.0/token" -Method POST -Body $teams_ReqTokenBody Connect-MicrosoftTeams -AccessTokens @($graph_tokenResponse.access_token,$teams_tokenResponse.access_token) -AccountId $UPN26KViews0likes0CommentsRe: Authenticating with an access token Connect-MicrosoftTeams
Has anyone successfully got this working yet? There was a new version released today for MicrosoftTeams, but I still unsuccessful. I have provided the App the relevant permissions as outlined in the documentation. Connect-MicrosoftTeams -AccessTokens @($tokenResponse, $teams_tokenResponse) -AccountId $UPN Connect-MicrosoftTeams : Parameter set cannot be resolved using the specified named parameters. At line:1 char:126KViews0likes1Comment
Recent Blog Articles
No content to show