Azure active directory Microsoft Graph API beta/reports没有数据
我一直在尝试使用Microsoft Graph API访问我帐户的MFA信息。此信息包含在API的测试版中,位于Azure active directory Microsoft Graph API beta/reports没有数据,azure-active-directory,microsoft-graph-api,Azure Active Directory,Microsoft Graph Api,我一直在尝试使用Microsoft Graph API访问我帐户的MFA信息。此信息包含在API的测试版中,位于https://graph.microsoft.com/beta/reports/credentialUserRegistrationDetails。虽然我可以毫无疑问地得到这个结果,但似乎没有结果,因为回答是: {'@odata.context': 'https://graph.microsoft.com/beta/$metadata#reports/credentialUserRe
https://graph.microsoft.com/beta/reports/credentialUserRegistrationDetails
。虽然我可以毫无疑问地得到这个结果,但似乎没有结果,因为回答是:
{'@odata.context': 'https://graph.microsoft.com/beta/$metadata#reports/credentialUserRegistrationDetails', 'value': []}
当我期待更像:
"@odata.context":"https://graph.microsoft.com/beta/reports/$metadata#Collection(microsoft.graph.credentialUserRegistrationDetails)",
"value":[
{
"id" : "id-value",
"userPrincipalName":"userPrincipalName",
"userDisplayName": "userDisplayName-value",
"authMethods": ["email", "mobileSMS"],
"isRegistered" : false,
"isEnabled" : true,
"isCapable" : false,
"isMfaRegistered" : true
}
]
}
我使用
reports.read.all
权限进行此API调用,虽然我可能缺乏访问数据的其他权限,但我真的不知道如何开始解决此问题。我想知道是否有人能解释为什么我看不到任何“值”
数据 要缩小此问题的范围,请确保租户中有/reports/credentialUserRegistrationDetails
的数据。您可以在Microsoft Graph Explorer中快速测试它:。您可以查看Azure portal中的报告吗?我使用您提供的链接进行了检查,在本例中,我也使用了一个空的“value”
数组。如果您指的是Multi-Factor Authentication Menu activity reports(多因素身份验证菜单活动报告),此处似乎没有任何结果,尽管我已在MFA上设置了用户。请遵循此文档:查看是否可以在Azure Portal上查看有关SSPR和MFA的报告。按照您发送的链接,我可以从页面使用情况和见解页面上看到,我确实可以访问有关谁注册了MFA和SSPR的信息。