首页 > 解决方案 > 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": [],

}

在此处输入图像描述

标签: azureazure-active-directorymicrosoft-graph-api

解决方案


我只是在为所有具有 id 和 createdDateTime 的用户寻找登录报告

在 Microsoft Graph Api 中,查询$select=id,createdDateTime可以让您想要,但登录不支持select,其他支持的查询无法做到这一点。 在此处输入图像描述


推荐阅读