MS Graph Report - date property

Hasintha Illangarathne 1 Reputation point
2021-10-08T05:47:09.883+00:00

I want to clarify whether the date parameter we are passing to get get useractivitydetails in report api is in UTC format or organizational time format.
like here
GET /reports/getTeamsUserActivityUserDetail(date={date_value})

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,520 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JanardhanaVedham-MSFT 3,536 Reputation points
    2021-12-16T16:56:32.773+00:00

    Hi @Hasintha Illangarathne ,

    As you can see in the below *M365 Admin Center Teams Usage Reports** Section screenshot, Last Updated Date (or Report Refreshed Date) is of UTC date & time format. "Last Updated Date" in M365 Admin Center Usage Reports section is same as Report Refreshed Date in M365 usage report Graph API response as shown below and hence {date-value} is of UTC date & time and it must have a format of YYYY-MM-DD.. Currently Teams User Activity User Details report only includes date only (without time) such as Report Refresh Date, Last Activity Date..etc.

    Example : GET https://graph.microsoft.com/v1.0/reports/getTeamsUserActivityUserDetail(date=2021-12-14)   
    The above query generate **Teams User Activity User Details** report of all the users on the date 2021-12-14 in that tenant.  
    

    158275-m365-admin-center-teams-user-activity.jpg

    158249-get-teams-user-activity-user-details-by-date.jpg

    Example of Teams User Activity User Details report :

    158315-teamsuseractivityuserdetailsreport.jpg

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    2 people found this answer helpful.
    0 comments No comments