This was related to an issue with period query option where the result was empty even for periods that have usage data and should be working now.
You can check more on this thread - Microsoft Graph API Report Period option is not working. Please try again and let is know if you still have the issue.
Microsoft Graph API connector to SharePointUserActivity returns empty array
I am trying to use the Graph API to get SharePoint User Activity for the last 30 days. I have done this before and it worked well, but suddenly it just returns an empty array. I am trying to use the following url: https://graph.microsoft.com/beta/reports/getSharePointActivityUserDetail(period='D7').
Has there a change in the Graph API the last month which causes this problem? I have also tried by using a date parameters and then it works, but it will not work when using the period-parameter.
FYI: I have only managed it to work with the beta-version before, not the v1.0-version. I have tried both of them now, but neither works.
Anybody got any tips for how to solve this problem?
-
Danstan Onyango 3,816 Reputation points Microsoft Employee
2021-09-02T09:14:57.75+00:00