msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Failed to execute GetThreadRosterAsync
Describe the bug
upgrade version from 2.26.1 to 2.27.0 errors our automation.
Get-MgTeamChannelMember error: Failed to execute GetThreadRosterAsync. Status: 403 (Forbidden) ErrorCode: Forbidden Date: 2025-04-24T11:30:39 Headers: Vary : Accept-Encoding Strict-Transport-Security...
Expected behavior
Get-MgTeamChannelMember OK
How to reproduce
- Execute
Install-Module -Name "Microsoft.Graph.Teams" -Scope CurrentUser -Force -ErrorAction Stop -Confirm:$FalseImport-Module -Name "Microsoft.Graph.Teams" -Scope Local -Force -ErrorAction Stop
Get-MgTeamChannelMember -TeamId "XXX" -ChannelId "YYY"
- see error
- Execute
Install-Module -Name "Microsoft.Graph.Teams" -Scope CurrentUser -Force -ErrorAction Stop -Confirm:$False -RequiredVersion 2.26.1
Import-Module -Name "Microsoft.Graph.Teams" -Scope Local -Force -ErrorAction Stop -RequiredVersion 2.26.1
Get-MgTeamChannelMember -TeamId "XXX" -ChannelId "YYY"
- no error
SDK Version
2.27.0
Latest version known to work for scenario above?
2.26.1
Known Workarounds
Use stable version:
Install-Module -Name "Microsoft.Graph.Teams" -Scope CurrentUser -Force -ErrorAction Stop -Confirm:$False -RequiredVersion 2.26.1
Import-Module -Name "Microsoft.Graph.Teams" -Scope Local -Force -ErrorAction Stop -RequiredVersion 2.26.1
Get-MgTeamChannelMember -TeamId "XXX" -ChannelId "YYY"
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_