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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
s-roberts
Helper I
Helper I

API call for Teams usage

Without the GraphAPI connector in PBI, we have to build web api calls to fetch teams usage data from scratch.

 

What would be the API call to fetch usage by Team?

 

This is the call to fetch the usage by user (https://graph.microsoft.com/beta/reports/getTeamsUserActivityUserDetail(date=YYYY-MM-DD)), but a user can belong to many teams, so we are unable to summarize from this content.

 

s-roberts_3-1597408138081.png

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @s-roberts ,

I checked the official document but not found the api that shows each record without any aggregate.
Perhaps you can try to access the admin portal to confirm if any export feature that allow you to export the detail user activity logs.
Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @s-roberts ,

I checked the official document but not found the api that shows each record without any aggregate.
Perhaps you can try to access the admin portal to confirm if any export feature that allow you to export the detail user activity logs.
Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

"a user can belong to many teams, so we are unable to summarize from this content"

 

Please elaborate.  You can run multiple API calls in Power Query and then combine the results.

 

The mentioned call provides an activity count by user and by day (not broken down by team).

When a user belongs to multiple teams, it would not be accurate to apply all the activities to each team. We'd need the portion of that activity that applies to each team. 

Is there another call that would already have acitvity counts by team and by day (and possibly by user). 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors