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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors