o365 报告 API 无法获取报告
o365 Reports API could not fetch Reports
当我尝试为报告调用 API 请求时,出现以下错误,图表浏览器中 /user/<tenant-id>
的示例 API 工作正常。对于报告,我无法获得 https://graph.microsoft.com/beta/reports/getOneDriveActivityUserCounts(period='D7')?$format=application/json.
的结果
尽管在管理报告中,由于我最近创建了这个试用帐户,因此没有生成报告。
谁能帮我完成我遗漏的步骤?
提前致谢。
"code": "UnknownError",
"message": "{\"error\":{\"code\":\"UnknownTenantId\",\"message\":\"We do not recognize this tenant ID 5b1afc8e-xxxx-4842-xxxx-xxxxxx. Please double-check the tenant ID and try again.\"}}",
@usergg123
当使用情况报告尚未准备好时会出现此错误。
请求您访问管理门户并访问此 Usage Reports
Portal.office.com -> 管理选项卡 -> 显示全部 -> 报告 -> 使用情况
看看您是否看到以下页面:
如果显示 no data ,理想情况下表示尚未为租户填充使用情况报告。
您很可能会遇到这个问题。如建议的那样,为新租户构建初始报告可能需要 48 小时。
此处发生了类似的讨论:Office365 Reports via Graph API
当我尝试为报告调用 API 请求时,出现以下错误,图表浏览器中 /user/<tenant-id>
的示例 API 工作正常。对于报告,我无法获得 https://graph.microsoft.com/beta/reports/getOneDriveActivityUserCounts(period='D7')?$format=application/json.
尽管在管理报告中,由于我最近创建了这个试用帐户,因此没有生成报告。
谁能帮我完成我遗漏的步骤?
提前致谢。
"code": "UnknownError",
"message": "{\"error\":{\"code\":\"UnknownTenantId\",\"message\":\"We do not recognize this tenant ID 5b1afc8e-xxxx-4842-xxxx-xxxxxx. Please double-check the tenant ID and try again.\"}}",
@usergg123
当使用情况报告尚未准备好时会出现此错误。
请求您访问管理门户并访问此 Usage Reports
Portal.office.com -> 管理选项卡 -> 显示全部 -> 报告 -> 使用情况
看看您是否看到以下页面:
如果显示 no data ,理想情况下表示尚未为租户填充使用情况报告。
您很可能会遇到这个问题。如建议的那样,为新租户构建初始报告可能需要 48 小时。
此处发生了类似的讨论:Office365 Reports via Graph API