SOLVED

Graph API error message "No Team found with Group id"

Brass Contributor

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

2020-06-03_10-52-50.jpg

2020-06-03_12-29-50.jpg

2020-06-03_12-34-13.jpg

2020-06-03_19-33-11.jpg

    

5 Replies
best response confirmed by pammnd (Brass Contributor)
Solution

@pammnd 

I figured this out. Please disregard.

@pammnd Please share what you figured out :) I've got the same error.

@pammndWhat was your solution to this?

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

Sorry for the late reply. It was user error in my case. I forgot to remove the brackets.
1 best response

Accepted Solutions
best response confirmed by pammnd (Brass Contributor)
Solution

@pammnd 

I figured this out. Please disregard.

View solution in original post