question

DamianRamesh-6401 avatar image
0 Votes"
DamianRamesh-6401 asked JimmyYang-MSFT edited

Microsoft Teams user activity reports api gives no data on usage times

getTeamsUserActivityUserDetail api gives no data on usage times as mentioned in this link

but the user activity report in Teams admin has all details. user-activity-report



Is there way to get the details (like audio time , video time ) in Teams admin through another api ?. or will this api be updated ?


office-teams-windows-itprooffice-teams-app-devmicrosoft-graph-teamwork
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @DamianRamesh-6401

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your issue is also related to Teams api, which is not in our support scope. I will add teams-app-dev tag to your thread. Thanks for your understanding!

I did a research and found some useful Teams activity information under the Team Work APIs. Could you check if it is useful for you?


0 Votes 0 ·

Hi @DamianRamesh-6401 ,
We tried to use this API (getTeamsUserActivityUserDetail ) and in response included results for Audio duration, Video duration. Can you trying using the API and see what you get in response.


Thanks.

0 Votes 0 ·

Tried the getTeamsUserActivityUserDetail reportroot-getteamsuseractivityuserdetail again . still don't see audio, video duration in from the received file from the response. the received csv header are same as in mentioned in the above documentation link :
Report Refresh Date,User Principal Name,Last Activity Date,Is Deleted,Deleted Date,Assigned Products,Team Chat Message Count,Private Chat Message Count,Call Count,Meeting Count,Has Other Action,Report Period

Able to see duration details in teams admin center but not through api.


0 Votes 0 ·

Hi, we tried with admin access token and were able to get the following fields :
Report Refresh Date,User Principal Name,Last Activity Date,Is Deleted,Deleted Date,Assigned Products,Team Chat Message Count,Private Chat Message Count,Call Count,Meeting Count,Meetings Organized Count,Meetings Attended Count,Ad Hoc Meetings Organized Count,Ad Hoc Meetings Attended Count,Scheduled One-time Meetings Organized Count,Scheduled One-time Meetings Attended Count,Scheduled Recurring Meetings Organized Count,Scheduled Recurring Meetings Attended Count,Audio Duration,Video Duration,Screen Share Duration,Audio Duration In Seconds,Video Duration In Seconds,Screen Share Duration In Seconds,Has Other Action,Is Licensed,Report Period

Can you tell how are you trying to access the API(using admin or user) and also check if all permissions are granted. We even checked by creating an AAD application and trying to access the API by granting application permissions, we got same result.
https://docs.microsoft.com/en-us/graph/auth-v2-service?view=graph-rest-1.0


Thanks

0 Votes 0 ·
Show more comments

1 Answer

PrithviKamble-MSFT-9239 avatar image
0 Votes"
PrithviKamble-MSFT-9239 answered

Hi, Seems like this is resolved since you are able to get details using beta api.
You can refer the document for more details.
https://docs.microsoft.com/en-us/graph/api/reportroot-getteamsuseractivityuserdetail?view=graph-rest-beta




Microsoft Q&A:


Thanks,
Prithvi

If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click on this link (https://aka.ms/DevCommunityEscalationForm) to escalate.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.