cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dansleps
New Member

Accessing Timecards Data from Teams Shifts through OData in Power BI.

I'm attempting to access Timecard data (for clocking in/clocking out reporting) via OData in Power BI Desktop using the following URL: https://graph.microsoft.com/beta/teams/{TeamID}/Schedule/

 

I can access Shift information, Time off information etc... however when I try and access timeCards I get the following error:

dansleps_0-1663077202963.png

Has anyone managed to successfully access this?

 

4 REPLIES 4
DanielVasquez
Regular Visitor

did you get a solution?

dansleps
New Member

Desktop is the latest version, and i've had colleagues attempt the same with no success. Credentials also not an issue as I can successfully access "TimeoffReasons" data, but not "Timecards".

 

This request is specifically around getting Timecards data out of "Shifts" in Teams, not a general request for assistance with connecting via OData.

v-rzhou-msft
Community Support
Community Support

Hi @dansleps ,

 

You can check:

  1. Whether your power bi desktop is the latest version.
  2. Whether you still have access to the source, maybe someone changed permissions.
  3. Please open a new power bi desktop file, go to File->Option->clear cache.

    In Edit queries->data source setting, clear permissions and try to reconnect it.

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I don't think it is related to Power BI but the Teams application as graph-explorer returns the same error but with a bit more detail:

 

message": "Missing scope permissions on the request. API requires one of 'Schedule.Read.All, Schedule.ReadWrite.All'.



Authorization and the Microsoft Graph Security API - Microsoft Graph | Microsoft Learn 

 

Talks about https://login.microsoftonline.com/common/adminconsent?client_id=<Application Id>&state=12345&redirect_uri=<Redirect URL>

But we can't identify the Application Id, or pehaps it is just which Application Id we need.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.