Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Frequent 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.