azure - microsoft-graph Azure AD登录预览日志修改
问题描述
我尝试为我们所有的 azure 帐户运行登录报告,我转到 Azure AD 和-> 登录 -> 下载,下载 PowerShell 脚本并成功获取数据。但是,它产生了太多细节。网址 = https://graph.microsoft.com/beta/auditLogs/signIns
?
我运行了过去 7 天并生成了超过 100M 的 txt 数据,我只是在为所有具有 id 和 createdDateTime 的用户寻找登录报告。
如何更改导出数据?我是这个 Graph Explorer 的新手,如果您有任何想法和建议,请告诉我,谢谢。
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#auditLogs/signIns",
"value": [
{
"id": "",
"createdDateTime": "2018-11-20T00:12:09.3961159Z",
"userDisplayName": "",
"userPrincipalName": ".com",
"userId": "",
"appId": "",
"appDisplayName": "Graph explorer",
"ipAddress": "",
"clientAppUsed": "Browser",
"mfaDetail": null,
"correlationId": "",
"conditionalAccessStatus": null,
"originalRequestId": null,
"isInteractive": true,
"tokenIssuerName": null,
"tokenIssuerType": "AzureAD",
"processingTimeInMilliseconds": 0,
"riskDetail": "hidden",
"riskLevelAggregated": "hidden",
"riskLevelDuringSignIn": "hidden",
"riskState": "none",
"riskEventTypes": [],
"resourceDisplayName": "microsoft graph",
"resourceId": "00000003-0000-0000-c000-000000000000",
"authenticationMethodsUsed": [],
}
解决方案
我只是在为所有具有 id 和 createdDateTime 的用户寻找登录报告
在 Microsoft Graph Api 中,查询$select=id,createdDateTime
可以让您想要,但登录不支持select
,其他支持的查询无法做到这一点。
推荐阅读
- java - 包 javax.servlet.http 可以从多个模块访问:servlet.api、tomcat.i18n.es、tomcat.i18n.fr、tomcat.i18n.ja
- c++ - 无法让程序在 C++ 中输出正确的结果
- python-3.x - 在嵌套字典中查找最大值
- python - Python BeautifulSoup 无法解析每个项目
- node.js - 使用 mongoose 进行 Node.js 电子邮件验证
- json - 如何在swift 4中解析json数组中的数组
- python - 使用 json.dumps 时出现 UnicodeDecodeError
- angular - 结合 *ngIf 管理子组件的最佳实践
- sql - 如何进行查询以选择 SUM 等于固定值的位置
- python - 如何将 JSON 数据(来自 API)转换为 python 数据?