Office365ActiveUsers图API调用返回未找到 - 我们无法识别此租户ID

问题描述:

我正在尝试使用Microsoft Graph Beta API获取Office 365活动用户报告。Office365ActiveUsers图API调用返回未找到 - 我们无法识别此租户ID

调用/reports/Office365ActiveUsers(view='Detail', period='d180')/content)将返回:

"error": { 
    "code": "NotFound", 
    "message": "We do no recognize this tenant ID {id}. Please double-check the tenant ID and try again.", 
    "innerError": {...} 
} 

我也试过/reports/Office365ActiveUsers(view='Detail', period='d180')/content/myorganization/reports/Office365ActiveUsers(view='Detail', period='d180')/content

关于我如何解决的任何想法?

Graph Playground Screenshot

+1

您是否可以从[O365 Admin Portal](https://portal.office.com/adminportal/home#/reportsUsage/LicenseActivity)手动运行此报告? –

这已经等待了几天后自己解决。

我没打开保险在安全&合规>搜索&调查>审核日志搜索(即https://protection.office.com/#/unifiedauditlog),但我不知道这是否有任何影响或没有。

感谢@Marc LaFleur - MSFT您的评论,当我点击导出报告时,我在管理员门户中收到同样的错误。