Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

Microsoft Entra ID

Direct answer

Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud identity provider: a tenant holds users, groups, devices and applications, issues tokens over OpenID Connect, OAuth 2.0 and SAML, and enforces authentication methods and Conditional Access.

When to use this

Use it for Microsoft 365 and Azure sign-in, single sign-on to SaaS apps, hybrid identity with on-premises AD, and app-to-app access with service principals and managed identities.

First 30 seconds

1. Which tenant, user and application? (sign-in log entry and correlation ID)

2. Did first-factor authentication succeed?

3. Which Conditional Access policies applied and what did they require?

4. Is the user synced and current (hybrid)?

5. Does the app's service principal exist and is the user assigned or consented?

Operational verification

user/workload → authentication method → token issuance → Conditional Access evaluation → application (service principal) consent/assignment → token to app → app authorizes claims

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Entra ID (cloud service); Microsoft Graph PowerShell and Azure CLI examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Entra ID (cloud service); Microsoft Graph PowerShell and Azure CLI examples.
Key commandGet-MgContext | Select-Object TenantId, Account, Scopes
Scope / prerequisiteUse it for Microsoft 365 and Azure sign-in, single sign-on to SaaS apps, hybrid identity with on-premises AD, and app-t…
What next?2 suggested next steps
Child topics (this level)1
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Read-only Verification Verify boundary
# Microsoft Graph PowerShell: confirm the tenant and scopes you are connected with
Connect-MgGraph -Scopes "User.Read.All","AuditLog.Read.All"
Get-MgContext | Select-Object TenantId, Account, Scopes

# Last sign-ins for one user
Get-MgAuditLogSignIn -Filter "userPrincipalName eq 'anna@example.com'" -Top 5 |
  Select-Object CreatedDateTime, AppDisplayName, ConditionalAccessStatus, @{n='Error';e={$_.Status.ErrorCode}}

# Synced user: onPremisesSyncEnabled and last sync time
Get-MgUser -UserId anna@example.com -Property onPremisesSyncEnabled,onPremisesLastSyncDateTime |
  Select-Object onPremisesSyncEnabled, onPremisesLastSyncDateTime
# On the Entra Connect Sync server
Get-ADSyncScheduler          # SyncCycleEnabled, NextSyncCycleStartTimeInUTC, StagingModeEnabled

# On a Windows client: device join and PRT state
dsregcmd /status             # AzureAdJoined, DomainJoined, AzureAdPrt : YES

A sign-in entry with error code 0 and ConditionalAccessStatus success proves Entra issued the token. It does not prove that the application accepted it or authorised the user — check the application's own logs next.

Step 2 Common mistakes Narrow the fault
  • Treating Entra ID as "AD in the cloud" and expecting OUs, GPO, LDAP or Kerberos for applications.
  • Granting admin consent to broad Graph permissions for an app nobody owns.
  • Excluding break-glass accounts from MFA but never monitoring their sign-ins.
  • Enforcing a new Conditional Access policy without report-only testing.
  • Confusing the app registration (definition) with the enterprise application (where assignment and SSO are configured).
Step 3 Troubleshooting Narrow the fault

User cannot sign in. Find the sign-in log entry and read the error code (AADSTS number). Common ones: 50126 invalid username or password, 50053 account locked (smart lockout), 50076/50079 MFA required or registration needed, 53003 blocked by Conditional Access, 50105 user not assigned to the application, 700016 application not found in the tenant (wrong app ID or not consented).

Blocked by Conditional Access. Open the entry's Conditional Access tab: it lists every policy as applied, not applied or report-only, with the failed control. Use the What If tool to test a user/app/location combination without signing in.

Hybrid user missing or stale in Entra ID. Check onPremisesLastSyncDateTime, the sync scheduler and the connector space for errors (duplicate UPN or proxyAddress is the usual cause). Objects outside the sync scope (OU or attribute filtering) never appear.

SSO works on one device but not another. Compare dsregcmd /status: no AzureAdPrt : YES means no Primary Refresh Token, so every app prompts.

Application error after a successful sign-in. Entra issued the token; the app rejected it. Compare the token's audience, issuer, roles and groups claims with what the app expects (see Tokens).

Drill down

Subtopics

Go one level deeper into this subject.

Key points

Entra ID is not AD DS in the cloud: no OUs, no GPO, no LDAP/Kerberos for apps by default. An app registration is the global definition; the enterprise application (service principal) is its instance in a tenant. Sign-in logs are the first place to look for any failed sign-in.

Key checks
  • Sign-in logs (Entra admin center or Get-MgAuditLogSignIn) — result, error code, Conditional Access outcome, authentication details.
  • dsregcmd /status on Windows — AzureAdJoined, DomainJoined, AzureAdPrt.
  • Get-ADSyncScheduler on the Connect Sync server — sync enabled, next cycle.
  • az account show / Get-MgContext — which tenant and identity you are actually using.
ReferenceWhat it is2 sections · depth on demand

Direct Answer

Microsoft Entra ID is Microsoft's cloud identity provider (renamed from Azure Active Directory in 2023). A tenant contains users, groups, devices and applications. Entra ID authenticates users with passwords, MFA and passkeys, applies Conditional Access after the first factor, and issues tokens to applications over OpenID Connect, OAuth 2.0 and SAML. In hybrid environments, Entra Connect Sync or Entra Cloud Sync copies users and groups from on-premises AD into the tenant. When a sign-in fails, start in the sign-in logs.

Scope and canonical references

This Topic owns Entra ID as a directory and identity provider.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Entra ID compared with AD DS

AD DSEntra ID
StructureForest, domains, OUsFlat tenant; administrative units for delegation
PolicyGroup PolicyConditional Access, Intune for devices
App protocolsKerberos, NTLM, LDAPOIDC, OAuth 2.0, SAML, WS-Fed
Query interfaceLDAPMicrosoft Graph (REST)
DevicesDomain joinEntra join, Entra hybrid join, registered

Applications that need LDAP or Kerberos from the cloud use Microsoft Entra Domain Services, a separate managed domain.

Applications: app registration vs enterprise application

Each application has one application object in its home tenant — the definition of how it gets tokens (redirect URIs, credentials, requested permissions), managed under App registrations. In every tenant where the app is used there is a service principal — the local instance that holds assignments, consent and sign-in data, managed under Enterprise applications. One application object can have many service principals (one per tenant). Service principals come in three types: application, managed identity (no application object; Azure manages its credentials) and legacy.

Hybrid identity

Entra Connect SyncEntra Cloud Sync
On-premises componentSync server with SQL database and sync engineLightweight provisioning agent(s), outbound only
ConfigurationOn the sync serverIn the Entra admin center
Multiple disconnected forestsComplexSupported natively
High availabilityStaging-mode serverMultiple active agents

Both support password hash synchronisation. Check Microsoft's feature comparison before choosing, because some scenarios still require Connect Sync. Sign-in for synced users can use password hash sync, pass-through authentication or federation (AD FS or another IdP). Default Connect Sync runs a delta cycle every 30 minutes.

Device states

  • Entra joined — cloud-only device; user signs in with an Entra account.
  • Entra hybrid joined — joined to on-premises AD and registered in Entra ID.
  • Entra registered — personal device with a work account added.

The Primary Refresh Token (PRT) on a joined device gives SSO to Entra-protected apps; dsregcmd /status shows whether the device has one.

Conditional Access

Policies are if-then statements evaluated after first-factor authentication: signals (user/group, application, device state, location/IP, sign-in risk) lead to block or grant with controls (MFA, authentication strength, compliant or hybrid-joined device, terms of use). Conditional Access requires Entra ID P1; risk-based conditions require Entra ID P2. Report-only mode lets you see a policy's effect before enforcing it.

Logs

LogAnswers
Sign-in logsWho signed in to what, result, error code, MFA, Conditional Access per policy
Audit logsDirectory changes: users, groups, roles, app consent
Provisioning logsSCIM provisioning to apps

Every sign-in has a correlation ID and request ID; give these to the application owner or Microsoft support instead of a screenshot.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
entra idmicrosoft entra idazure adazure active directoryaadentra connectentra cloud syncservice principalapp registrationenterprise applicationentra sign-in logsdsregcmd
Confirmation

Confirm action

Continue?