Forum Discussion
pammnd
Jun 03, 2020Brass Contributor
Graph API error message "No Team found with Group id"
Hello,
I get an error message every time I run GET https://graph.microsoft.com/v1.0/teams/{team-id}/installedApps?$expand=teamsAppDefinition I get the error message "No Team found with Group id."
I've also tried using the following and got the same error message:
$uri = ('https://graph.microsoft.com/v1.0/groups?$select=id,displayname,resourceProvisioningOptions')
$teams = (Invoke-RestMethod -Method Get -Uri $uri -Headers $token).Value #| Where-Object {$_.resourceProvisioningOptions -contains 'Team'}
foreach ($team in $teams) {
# Get the General Channel properties
$channel = (Invoke-RestMethod -Method Get -Uri ("https://graph.microsoft.com/v1.0/teams/$($team.ID)/channels" + '?$filter=DisplayName eq ' + "'General'") -Headers $token).Value
}
The error screenshot is below. I'm getting this in PowerShell as well as the Graph Explorer.
Reading here, it does look like there's a known issue with pulling list of teams, is this what could be causing this?
Thank you!
Pam
    
I figured this out. Please disregard.
- pammndBrass Contributor
I figured this out. Please disregard.
- Bastiaan KortenboutCopper Contributor
pammnd Please share what you figured out 🙂 I've got the same error.
- pammndBrass ContributorSorry for the late reply. It was user error in my case. I forgot to remove the brackets.