Skip to content

Dataset

Microsoft Entra ID sign-in and audit log datasets for AI training

A Microsoft Entra ID dataset is an export of one tenant's identity records as Entra ID, formerly Azure Active Directory, writes them: interactive, non-interactive, service principal and managed identity sign-in logs, directory audit logs and risk detections, delivered with the Conditional Access policies, users, groups, devices and applications needed to read them. SourceX sources it to a buyer's spec from established businesses that run Entra ID. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Sign-in and audit logs from one Entra ID tenant, with risk detections and the Conditional Access policies and directory objects they refer to
Typical systems
Microsoft Entra ID Free, P1 or P2; ID Protection risk data where licensed; logs routed by diagnostic settings to Log Analytics, a storage account or Microsoft Sentinel
Typical history
Specified by the buyer; the tenant keeps logs only briefly, so history is as long as the holder's workspace or storage archive
Modality
Structured events with nested policy, device, location and authentication objects; policies as JSON
Delivery formats
Agreed per order; JSONL in the Microsoft Graph or Log Analytics schema, Parquet for large sign-in tables
Preparation
User principal names, object IDs, device IDs and tenant IDs pseudonymized the same way in every log; IP addresses and locations tokenized or coarsened
Licensing
Rights reviewed per tenant, including employee monitoring notice and guest users; permitted use set in the license
Availability
Sourced to your spec by log category, identity population and months of history; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
sign_in_idstringThe id of the signIn record, with its correlationId, which groups the records one authentication attempt produced.
sign_in_event_typeenumThe signInEventTypes value on the Graph signIn (interactiveUser, nonInteractiveUser, servicePrincipal or managedIdentity), or the Log Analytics table the row came from.
created_date_timedatetimecreatedDateTime of the signIn in UTC, which Log Analytics rows carry as CreatedDateTime beside TimeGenerated.
user_refobjectA stable token for userId, the user object's ID, with userType (member or guest).
app_and_resourceobjectappDisplayName of the client application and resourceDisplayName, the resource the token was requested for.
client_app_usedstringclientAppUsed from the signIn, such as Browser, Mobile Apps and Desktop clients or a legacy protocol.
statusobjectstatus.errorCode and failureReason; in Log Analytics the same values are ResultType and ResultDescription.
authentication_detailsobjectauthenticationRequirement and each authenticationDetails step, with method, outcome and result detail.
conditional_accessobjectconditionalAccessStatus plus every appliedConditionalAccessPolicies entry: policy id, displayName, result, enforcedGrantControls and enforcedSessionControls.
device_detailobjectdeviceDetail from the signIn: a token for deviceId, operatingSystem, browser, isCompliant, isManaged and trustType.
riskobjectriskLevelDuringSignIn, riskLevelAggregated, riskState and riskDetail, joined to riskDetection records where the tenant's license provides them.
location_networkobjectlocation (city, state, country) and ipAddress from the signIn, tokenized or coarsened as agreed.
audit_recordobjectAn AuditLogs event: activityDisplayName, category, loggedByService, initiatedBy, and targetResources with modifiedProperties.
policy_snapshotobjectA conditionalAccessPolicy exported from Graph: state, conditions, grantControls and sessionControls, with the export date.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "sign_in_id": "si_7f3a91c2",
  "correlation_id": "corr_52b0e7",
  "sign_in_event_type": "interactiveUser",
  "created_date_time": "2024-09-17T07:42:18Z",
  "user_ref": {
    "user_id": "usr_0412"
  },
  "app_and_resource": {
    "resource_display_name": "Finance Reporting API"
  },
  "client_app_used": "Browser",
  "status": {
    "error_code": 53000,
    "failure_reason": "Device is not in required device state: {state}. Conditional Access policy requires a compliant device, and the device is not compliant."
  },
  "authentication_details": {
    "authentication_requirement": "multiFactorAuthentication",
    "steps": [
      {
        "method": "Password",
        "succeeded": true
      },
      {
        "method": "Previously satisfied",
        "succeeded": true,
        "result_detail": "MFA requirement satisfied by claim in the token"
      }
    ]
  },
  "conditional_access": {
    "status": "failure",
    "applied_policies": [
      {
        "id": "pol_a1",
        "display_name": "CA012 Require compliant device",
        "result": "failure",
        "enforced_grant_controls": [
          "RequireCompliantDevice"
        ]
      },
      {
        "id": "pol_b7",
        "display_name": "CA003 Require MFA",
        "result": "success",
        "enforced_grant_controls": [
          "Mfa"
        ]
      },
      {
        "id": "pol_c4",
        "display_name": "CA020 Block legacy authentication",
        "result": "notApplied"
      },
      {
        "id": "pol_d9",
        "display_name": "CA031 Sign-in frequency",
        "result": "reportOnlyFailure"
      }
    ]
  },
  "device_detail": {
    "device_id": "",
    "operating_system": "Windows",
    "is_compliant": false
  },
  "risk": {
    "risk_level_during_sign_in": "none"
  },
  "location_network": {
    "country": "US",
    "ip_address": "ip_88c1"
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Explain an access decision

A sign-in with its policy results trains a model to say which policy blocked a user and what would satisfy it.

Test a policy before enforcing it

Report-only results sit beside enforced outcomes, so a predicted effect can be checked against what later happened.

Score sign-in risk

Risk levels and detection types, with an administrator's confirmed-compromised or dismissed verdict, are labels for risk models.

Resolve sign-in problems

Error codes, failure reasons and authentication steps show a support agent why a user could not sign in.

Evaluate policy authoring

Policy JSON, its audit trail of edits and the lockouts that followed are test items for an agent that drafts access rules.

Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Customer support agents

What makes this data valuable

All four sign-in logs

Non-interactive, service principal and managed identity records routed as well as interactive ones.

Policy lists populated

appliedConditionalAccessPolicies is present with named report-only results, not omitted or returned as unknownFutureValue.

Policies resolve by ID

Every policy id on a sign-in joins to an exported policy definition.

Continuous routing

No gaps from an edited diagnostic setting or a retention cut in the workspace.

Risk fields real

Risk values are levels, not the hidden marker of a tenant without the P2 license.

One pseudonym per user

The same token in sign-in logs, audit targets, risk records and the directory.

Record timeline

Microsoft Entra ID dataset

This page covers microsoft Entra ID sign-in and audit logs.Illustrative

Each sign-in lists the Conditional Access policies that decided it

An Entra ID signIn record carries its own explanation. Its appliedConditionalAccessPolicies property holds an entry for each Conditional Access policy evaluated, including those that did not apply, with its id, display name, result and enforced controls. The result vocabulary is the product's own: success, failure, notApplied and notEnabled for enforced policies, and reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied and reportOnlyInterrupted for policies under trial. Beside it sit deviceDetail, with isCompliant, isManaged and trustType, the risk levels and risk state, and authenticationDetails, which lists each authentication step and whether a multifactor requirement was met by a fresh prompt or by a claim already in the token.

The entry names the policy and its result, not its conditions. Those are in the conditionalAccessPolicy object: users and groups included and excluded by object ID, target applications, client app types, named locations by ID, risk levels, grant controls joined by AND or OR, and a state of enabled, disabled or enabledForReportingButNotEnforced. Graph returns only today's version. Earlier versions come from AuditLogs, where each policy edit is an event whose modifiedProperties hold the old and new policy as JSON. Group membership is current state too, so who a policy covered on a past date has to be rebuilt from membership events in the same log.

Most entries on any sign-in are notApplied or notEnabled, and the signal is the few that applied. An empty deviceId in deviceDetail means the client presented no device identity, which is how a compliant laptop in a private browser window fails a compliant-device policy. Risk fields carry levels only for tenants on the P2 license that includes ID Protection, and other tenants get the value hidden. An MFA prompt is often logged as its own interrupted record with a non-zero error code, followed by a success under the same correlationId, so counting non-zero codes as failed sign-ins can overstate failure. Check this on a sample.

Four sign-in logs, kept only where diagnostic settings routed them

Entra ID has four sign-in logs, not one: interactive user, non-interactive user, service principal and managed identity. Non-interactive records, written when a client redeems a refresh token, usually far outnumber the rest. The tenant keeps all of them for a short period that depends on the license, days on Free and about a month on P1 and P2. History beyond that exists only where an administrator created a diagnostic setting and ticked the categories to route: SignInLogs, NonInteractiveUserSignInLogs, ServicePrincipalSignInLogs, ManagedIdentitySignInLogs, AuditLogs and the risk categories. Each is a separate tick box with its own ingestion volume, and a tenant may have routed the interactive and audit logs and left the high-volume ones out.

The same event looks different in each destination. Microsoft Graph returns camelCase signIn objects, gives interactive user sign-ins only unless the query filters on signInEventTypes, a filter documented on the beta endpoint. It omits appliedConditionalAccessPolicies when the caller lacks permission to read policies, and it returns report-only results as unknownFutureValue unless the request carries the Prefer: include-unknown-enum-members header. A Log Analytics workspace has one table per log, SigninLogs, AADNonInteractiveUserSignInLogs, AADServicePrincipalSignInLogs and AADManagedIdentitySignInLogs, with PascalCase columns and the error code as a string in ResultType. In the non-interactive table, ConditionalAccessPolicies and DeviceDetail are string columns holding JSON where SigninLogs has dynamic objects, so a query written for one table fails or returns blanks on the other. A storage account holds hourly JSON blobs per category.

Risk detections made offline arrive after the sign-in, so ask whether delivered rows show risk as first written or as later updated, and take the riskDetection records with them. Users, groups and devices are read as they are today, and a deleted user leaves an ID that joins to nothing. To test a sample, count rows per table per day to find gaps, join each policy id to the exported policies, and trace one pseudonymous user from SigninLogs into AuditLogs.

What to check before licensing

  • Ask which diagnostic setting categories were routed, since what date and under what retention, and request daily row counts per table.
  • Confirm appliedConditionalAccessPolicies is populated in the sample, and for a Graph export ask which permissions the caller held and whether report-only results came back by name.
  • Ask for the conditionalAccessPolicy objects, named locations and the AuditLogs of policy edits for the same window, and check that every policy id in the sample resolves.
  • Check that user principal names, object IDs, device IDs, IP addresses and locations are pseudonymized consistently across every table, including inside audit targetResources and modifiedProperties.
  • Ask which license the tenant holds, and treat risk fields that read hidden as absent data.
  • Have the buyer and the data owner each check Microsoft's terms on exported tenant data and API use, and have the data owner confirm with counsel that employee monitoring notice requirements were met where its staff work.
  • Ask how detail that describes the holder's defenses was handled: accounts excluded from MFA, emergency access accounts and the IP ranges of named locations.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How far back do Entra ID sign-in logs go?

Only as far as the holder archived them. Entra ID keeps sign-in and audit logs in the tenant for a short period that depends on the license, days on the Free edition and about a month on P1 or P2, and anything older exists because a diagnostic setting routed it to a Log Analytics workspace or a storage account. Ask when each category was first routed and what retention the destination applies.

Do the logs show why a sign-in was blocked?

Yes, in most cases. Each record carries an error code, a failure reason and a list of policies with a result for each, so a block can be traced to the policy that failed and the control it demanded. The policy's conditions come from the exported policy objects, so license the policy set with the logs.

Are non-interactive and service principal sign-ins included?

Only if the holder routed them and you ask for them. They are separate log categories with separate tables, and a tenant can archive interactive sign-ins while skipping the non-interactive log because of its volume. Without them, token refresh activity and workload identities are missing. Name each log category you need.

Can the Conditional Access policy in force on a past date be recovered?

Usually, if audit logs cover the period. Microsoft Graph returns each policy as it is today. Every create, update and delete of a policy is also an audit event that stores the old and new definition, so the version in force on a given day can be rebuilt by replaying those events back from the current policy.

Is a Microsoft Graph export the same as a Log Analytics export?

No, the events are the same and the shape is not. Graph returns camelCase objects with a nested status, while Log Analytics has one table per sign-in log, PascalCase columns, the error code in ResultType and, in the non-interactive table, nested columns stored as JSON text. Ask which route produced the delivery and whether records were normalized to one schema.

Is SourceX affiliated with Microsoft?

Microsoft Entra ID is named to identify the system the records come from. That does not imply a partnership with or endorsement by Microsoft. The records belong to the business that runs Microsoft Entra ID, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies