Hello, I am trying to view installed apps on all Teams. I have picked a random Team and can successfully do a get on https://graph.microsoft.com/v1.0/teams/[teamid] with successful results, on any team. However when attempting to do https://graph.microsoft.com/v1.0/teams/[teamid]/installedApps?$expand=teamsAppDefinition on the same team, I get the following:
{
"error": {
"code": "AccessDenied",
"message": "Unable to fetch team thread, exception:Failed to execute Skype backend request GetThreadRequest.",
"innerError": {
"request-id": "redacted",
"date": "redacted"
}
}
}
The application used to access Graph has the permissions outlined as required on this page: Group.Read.All
Of note, the error does not occur when the user signed in with to the application during the OAuth flow is in the Teams group that is being queried. As a result, it seems that the delegated permissions outlined in this document don't allow the application to view all applications.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Unlike GET /team/{id}, /teams/[teamid]/installedApps doesn't give special privileges to admins – they need to be part of the team if they want to access the installedApps.
I'm getting these errors intermittently across Teams after granting a new account member permissions and adding the required licenses. I think it's got to do with replication and if that's the case, that's fine. Just maybe this can be documented for future reference :)
This is not specific to getting a list of teams apps. Here's what I've done:
HTTP /beta/teams/guid/installedApps?$expand=teamsAppDefinition
json
{
"error": {
"code": "AccessDenied",
"message": "Unable to fetch team thread, exception:Failed to execute Skype backend request GetThreadRequest.",
"innerError": {
"request-id": "dd576c77-3124-4294-8513-25e614cb36b6",
"date": "2019-03-17T04:36:10"
}
}
}
HTTP /beta/teams/guid/channels
json{
"error": {
"code": "AccessDenied",
"message": "Failed to execute Skype backend request GetThreadRequest.",
"innerError": {
"request-id": "38ab4a29-059e-4541-a4fa-02dac3c1c101",
"date": "2019-03-17T04:45:57"
}
}
}
@nkramer - Is there a roadmap plan to allow admins access to items like installed apps on all teams without being a member of each team?
It's a reasonable request but its not currently planned.