"Get item activity stats by interval" works incorrect

Gleb Demidchik 0 Reputation points
2024-08-07T10:57:03.16+00:00

I use a Microsoft business account and use my application to make an API callout to get statistics from a document (docs: https://learn.microsoft.com/en-us/graph/api/itemactivitystat-getactivitybyinterval?view=graph-rest-1.0&tabs=http). However, this method only returns the "access" action. Edit, Delete and Create are not displayed in the response, although these actions were performed (which confirms creation the document versions). The permission that my application uses is Files.ReadWrite.All. The same problem occurs when using Microsoft Explorer.

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

1 answer

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,975 Reputation points Microsoft External Staff
    2024-08-08T16:11:39.89+00:00

    Hello @Gleb Demidchik ,

    Thank you for reaching Microsoft!

    I tried to reproduce from my end and getting only the "access" action. As per the documentation it is mentioned that Analytics aggregates might not be available for all action types.

    User's image

    Document reference:https://learn.microsoft.com/en-us/graph/api/itemactivitystat-getactivitybyinterval?view=graph-rest-1.0&viewFallbackFrom=graph-rest-beta&tabs=http

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.