Edit

Share via


auditLogRoot: getSummarizedNonInteractiveSignIns

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Returns aggregated non-interactive sign-in event counts grouped by user, application, IP address, and time window, with drill-down capability using individual requestIds via the /signIns endpoint. This includes autonomous agent sign-in events.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permission Higher privileged permissions
Delegated (work or school account) AuditLog.Read.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application AuditLog.Read.All Not available.

Important

In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation:

  • Reports Reader
  • Security Administrator
  • Security Reader

HTTP request

GET /auditLogs/getSummarizedNonInteractiveSignIns(aggregationWindow='{aggregationWindow}')

Function parameters

In the request URL, provide the following query parameters with values.

Parameter Type Description
aggregationWindow aggregationWindow The aggregation window to get summary for. The possible values are: h1 (1 hour), h6 (6 hours), d1 (1 day).

Optional query parameters

This method supports the $filter OData query parameter to help customize the response. You can apply $filter on one or more of the following properties of the summarizedSignIn resource. For general information, see OData query parameters. You may also apply the $top query parameter to limit the number of results returned to a specific number. The default and max $top parameter is 1000 records.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and a summarizedSignIn collection in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/auditLogs/getSummarizedNonInteractiveSignIns(aggregationWindow='d1')

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": [
    {
      "signInCount": 18,
      "aggregationDateTime": "2025-02-26T06:00:00Z",
      "id": "00000000-0000-0000-0000-000000000000",
      "firstSignInDateTime": "2025-02-26T06:08:33Z",
      "userPrincipalName": "",
      "appId": "00000000-0000-0000-0000-000000000000",
      "appDisplayName": "Azure Logic Apps",
      "ipAddress": "0.0.0.0",
      "conditionalAccessStatus": "success",
      "resourceDisplayName": "Azure Storage",
      "resourceId": "00000000-0000-0000-0000-000000000000",
      "tenantId": "00000000-0000-0000-0000-000000000000",
      "servicePrincipalName": null,
      "servicePrincipalId": "",
      "status": {
        "errorCode": 0,
        "failureReason": null,
        "additionalDetails": null
      },
      "managedServiceIdentity": {
        "msiType": "systemAssigned",
        "associatedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Logic/workflows/myLogicApp",
        "federatedTokenId": null,
        "federatedTokenIssuer": null
      },
      "agent": {
        "agentType": "notAgentic",
        "parentAppId": null
      }
    },
    {
      "signInCount": 9,
      "aggregationDateTime": "2025-02-26T06:00:00Z",
      "id": "00000000-0000-0000-0000-000000000000",
      "firstSignInDateTime": "2025-02-26T06:18:55Z",
      "userPrincipalName": "",
      "appId": "00000000-0000-0000-0000-000000000000",
      "appDisplayName": "Azure Portal",
      "ipAddress": "0.0.0.0",
      "conditionalAccessStatus": "success",
      "resourceDisplayName": "Microsoft Graph",
      "resourceId": "00000000-0000-0000-0000-000000000000",
      "tenantId": "00000000-0000-0000-0000-000000000000",
      "servicePrincipalName": null,
      "servicePrincipalId": "",
      "status": {
        "errorCode": 0,
        "failureReason": null,
        "additionalDetails": null
      },
      "managedServiceIdentity": {
        "msiType": "userAssigned",
        "associatedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity",
        "federatedTokenId": "arn:aws:iam::123456789012:role/MyFederatedRole",
        "federatedTokenIssuer": "https://token.actions.githubusercontent.com"
      },
      "agent": {
        "agentType": "notAgentic",
        "parentAppId": null
      }
    },
    {
      "signInCount": 5,
      "aggregationDateTime": "2025-02-26T06:00:00Z",
      "id": "00000000-0000-0000-0000-000000000000",
      "firstSignInDateTime": "2025-02-26T06:42:17Z",
      "userPrincipalName": "",
      "appId": "00000000-0000-0000-0000-000000000000",
      "appDisplayName": "Azure DevOps",
      "ipAddress": "0.0.0.0",
      "conditionalAccessStatus": "failure",
      "resourceDisplayName": "Azure Key Vault",
      "resourceId": "00000000-0000-0000-0000-000000000000",
      "tenantId": "00000000-0000-0000-0000-000000000000",
      "servicePrincipalName": null,
      "servicePrincipalId": "",
      "status": {
        "errorCode": 70011,
        "failureReason": "The resource is not available",
        "additionalDetails": "Managed identity not found"
      },
      "managedServiceIdentity": {
        "msiType": "systemAssigned",
        "associatedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp",
        "federatedTokenId": null,
        "federatedTokenIssuer": null
      },
      "agent": {
        "agentType": "notAgentic",
        "parentAppId": null
      }
    }
  ]
}