Skip to content

Entra ID Failed Authentication Attempts

The question it answers: Which sign-ins failed in the last 7 days, with which error and risk level?

Where in the appEntra ID › Security › Failed Authentication Attempts
WorkloadEntra ID
KindTable
DataRead from Microsoft 365 when someone first opens it, then kept for the report cache lifetime (Settings > Data & cache, 1 hour unless changed). It reads through PowerShell (Exchange Online or SharePoint Online), so the first load takes longer than a Graph report.
LicenceMicrosoft Entra ID P1 (sign-in logs).
Report id (API and MCP)entra.security.failed-authentication-attempts
ColumnKeyType
User Principal NameUserPrincipalNameText
Created Date TimeCreatedDateTimeDateTime
Status CodeStatus.ErrorCodeText
Authentication StatusStatus.AuthenticationStatusText
Failure ReasonStatus.FailureReasonText
Additional DetailsStatus.AdditionalDetailsText
Risk LevelRiskLevelText

Licence: Microsoft Entra ID P1 (sign-in logs).

Application permissions on the IntensiveReports app registration (all permissions):

PermissionAPIWhat it allowsNote
AuditLog.Read.AllMicrosoft GraphRead all audit log data
Data sources it reads
  • PowerShell: Get-MgAuditLogSignIn -All -Filter "createdDateTime ge (now - 7 days) and status/errorCode ne 0" (GET /v1.0/auditLogs/signIns)
GET /ir-api/v1/reports/entra.security.failed-authentication-attempts?size=100

An AI assistant reads it with the MCP tool get_report and the id entra.security.failed-authentication-attempts. The client needs the Read grant for Entra ID. See Using the API.