无法访问 SPOOneDriveForBusinessFileActivity REST API 调用

Unable to access SPOOneDriveForBusinessFileActivity REST API call

我正在使用 Microsoft 的 o365 REST API 客户端库(https://github.com/Microsoft/o365rwsclient) and have been able to get many of the API calls to work, but am not having any luck with "SPOOneDriveForBusinessFileActivity". Also, I don't see it advertised in the o365 web service atom feed at https://reports.office365.com/ecp/reportingwebservice/reporting.svc

这里是对事件应该return的描述:https://support.office.com/en-gb/article/Understanding-the-User-activity-logs-report-80d0b3b1-1ee3-4777-8c68-6c0dedf1f980

查看 https://github.com/Microsoft/o365rwsclient/blob/master/TenantReport/SPOOneDriveForBusinessFileActivity.cs 中的源代码,它似乎是一个有效的函数,但是当从 c# 应用程序(如下)中使用 o365rwsclient 库时,我收到 404 错误(URL 未找到).

知道发生了什么事吗?此报告是否已实施(Powershell cmdlet 或直接 REST 调用也可以接受)- 如果是,我如何访问它?

using Microsoft.Office365.ReportingWebServiceClient;
using System;

namespace O365ReportingDataExport
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            ReportingContext context = new ReportingContext();
            //If you enter invalid authentication information, Visual Studio will throw an exception.
            context.UserName = @"PUT YOUR OFFICE 365 USER EMAIL ADDRESS HERE";
            context.Password = @"PUT YOUR OFFICE 365 USER PASSWORD HERE";
            //FromDateTime & ToDateTime are optional, default value is DateTime.MinValue if not specified
            context.FromDateTime = DateTime.MinValue;
            context.ToDateTime = DateTime.MinValue;
            context.SetLogger(new CustomConsoleLogger());

            IReportVisitor visitor = new CustomConsoleReportVisitor();

            ReportingStream stream1 = new ReportingStream(context, "SPOOneDriveForBusinessFileActivity", "stream1");
            //Calls VisitReport 
            stream1.RetrieveData(visitor);

            Console.WriteLine("Press Any Key...");
            Console.ReadKey();
        }

        private class CustomConsoleLogger : ITraceLogger
        {
            public void LogError(string message)
            {
                Console.WriteLine(message);
            }

            public void LogInformation(string message)
            {
                Console.WriteLine(message);
            }
        }

        private class CustomConsoleReportVisitor : IReportVisitor
        {
            public override void VisitBatchReport()
            {
                foreach (ReportObject report in this.reportObjectList)
                {
                    VisitReport(report);
                }
            }

            public override void VisitReport(ReportObject record)
            {
                Console.WriteLine("Record: " + record.Date.ToString());
            }
        }
    }
}

在与 Microsoft 的 O365 支持团队交谈后,似乎能够在 OneDrive for Business 中查看文件 activity 是一项仍在内部测试中的功能(因此能够在他们的 REST API's) 尚未部署。