Forum Discussion

pammnd's avatar
pammnd
Brass Contributor
Jun 03, 2020
Solved

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

    

      • pammnd's avatar
        pammnd
        Brass Contributor

        zachatzix Sorry for taking so long to reply. In my case it was user error. I forgot to remove the brackets.:facepalm:

      • pammnd's avatar
        pammnd
        Brass Contributor
        Sorry for the late reply. It was user error in my case. I forgot to remove the brackets.

Resources