question

MORTENSENJorgen-9908 avatar image
0 Votes"
MORTENSENJorgen-9908 asked 35247258 edited

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?

microsoft-graph-reports
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.

1 Answer

Danstan-MSFT avatar image
0 Votes"
Danstan-MSFT answered Danstan-MSFT commented

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.


· 1
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.

There seems to be an issue with the User Display Name and Site Url, asked on this thread - getEmailActivityUserDetail(date=xxxx) was working but now is returning wrong values in UserPrincipal Identity. If you see the same behavior, you can upvote the question.


0 Votes 0 ·