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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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