Permissions not granted for graph.microsoft.com teams > schedule

Christopher Hilling 5 Reputation points
2023-10-01T19:59:14.59+00:00

I am unable to grant graph.microsoft.com API permission to the schedule node within teams when trying to access the data from Power BI. I get the message:

Expression.Error: Access to the resource is forbidden

The following work:

OData.Feed("https://graph.microsoft.com/v1.0/teams/{tenant}", [ Authorization = "Bearer " & access_token ], [ ODataVersion = 4, Implementation = "2.0" ]) 
OData.Feed("https://graph.microsoft.com/v1.0/teams/{tenant}/members", [ Authorization = "Bearer " & access_token ], [ ODataVersion = 4, Implementation = "2.0" ]) 

but this does NOT work:

OData.Feed("https://graph.microsoft.com/v1.0/teams/{tenant}/schedule", [ Authorization = "Bearer " & access_token ], [ ODataVersion = 4, Implementation = "2.0" ]) 

The API has both Delegated and Application "Schedule.Read.All" rights along with all the Teams read rights.

Any suggestions of what I have missed?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,520 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BenjaminM-MSFT 75 Reputation points Microsoft External Staff
    2023-10-02T07:47:09.55+00:00

    Hi @Christopher Hilling ,
    To access the https://graph.microsoft.com/v1.0/teams/{tenant}/schedule endpoint, you need Application permissions Schedule.Read.All granted by the tenant admin. Additionally, you need Teams.ReadBasic.All

    teams-schedule

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.