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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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