Microsoft Graph API connector to SharePointUserActivity returns empty array

MORTENSEN Jorgen 21 Reputation points
2021-09-01T09:30:02.87+00:00

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?

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

Accepted answer
  1. Danstan Onyango 3,816 Reputation points Microsoft Employee
    2021-09-02T09:14:57.75+00:00

    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.


0 additional answers

Sort by: Most helpful