Skip to content

Sign-ins from Unusual Countries & Device-code Flow

The question it answers: Who used the device-code flow, and who signed in successfully from a country the tenant rarely signs in from, in the last 7 days?

Two things Conditional Access often lets through: successful sign-ins from countries your organisation rarely signs in from, and the device-code flow - where a user types a code on microsoft.com/devicelogin, the technique behind a wave of token-phishing campaigns. Device-code sign-ins are listed first.

Where in the appEntra ID › Sign-in Analytics › Unusual Countries & Device Code
WorkloadEntra ID
KindTable
DataBuilt from the tenant data IntensiveReports keeps in memory and refreshes in the background, so it opens at once.
LicenceMicrosoft Entra ID P1.
Report id (API and MCP)entra.sign-ins.unusual-sign-ins
ColumnKeyType
UserNameLink
UPNSecondaryText
TypeCategoryStatus
FindingFindingText
Sign-insCountText
Where / appDetailText
Last seenLastSeenDateTime

Licence: Microsoft Entra ID P1.

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

PermissionAPIWhat it allowsNote
AuditLog.Read.AllMicrosoft GraphRead all audit log data
Data sources it reads
  • GET /beta/auditLogs/signIns?$filter=createdDateTime ge (7 days)
GET /ir-api/v1/reports/entra.sign-ins.unusual-sign-ins?size=100

An AI assistant reads it with the MCP tool get_report and the id entra.sign-ins.unusual-sign-ins. The client needs the Read grant for Entra ID. See Using the API.