apollon7
apollon7

Reputation: 55

Access Denied when querying Teams in Microsoft Graph

Whenever I query the Teams endpoint in Microsoft Graph:

GET https://graph.microsoft.com/beta/teams/{id}

I get the following error:

AccessDenied - Failed to execute Skype backend request GetThreadRequest.

The permissions are set according to the documentation. (Group.Read.All - delegated permission)

Querying https://graph.microsoft.com/beta/groups/{id} is working while with the same access token https://graph.microsoft.com/beta/teams/{id} isn't.

I tried it with my own application and in the Graph Explorer. Both ways didnt't work for me. However using Graph Explorer with the sample account is working. Is there maybe another permission needed which is not yet documented?

Upvotes: 3

Views: 1217

Answers (1)

Bill Bliss - MSFT
Bill Bliss - MSFT

Reputation: 3591

Currently it's a requirement that the person using the Graph APIs (and the PowerShell cmdlets that use them under the covers) must be a member of the team whose information they are trying to retrieve. This is the second-most popular ask for users of our cmdlets, and we are close to resolving it. We expect this to be fixed by the end of September 2018, with write APIs/commands coming a few weeks later than read APIs/commands.

Upvotes: 1

Related Questions