Hi, I'm having an issue where when running this script, I'm connecting to MgGraph with the specified scopes just fine, and they show in MgContext, but the script fails immediately with "Get-MgTeam -All" with the following error:
Get-MgTeam : Authentication needed, call Connect-MgGraph.
Hi, I'm having an issue where when running this script, I'm connecting to MgGraph with the specified scopes just fine, and they show in MgContext, but the script fails immediately with "Get-MgTeam -All" with the following error: Get-MgTeam : Authentication needed, call Connect-MgGraph.
Scopes listed: Directory.Read.All Team.ReadBasic.All TeamSettings.Read.All ChannelSettings.Read.All TeamsTab.Read.All
I am using the beta MgProfile. Maybe I'm missing something. Any suggestions for what to check? Thanks!