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.
Microsoft Entra ID
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.
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?
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
Operational reference
Fast context before you go deeper.
Get-MgContext | Select-Object TenantId, Account, ScopesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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).
Subtopics
Go one level deeper into this subject.
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.
- Sign-in logs (Entra admin center or
Get-MgAuditLogSignIn) — result, error code, Conditional Access outcome, authentication details. dsregcmd /statuson Windows — AzureAdJoined, DomainJoined, AzureAdPrt.Get-ADSyncScheduleron 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.
- Protocols it issues tokens with: OpenID Connect, OAuth 2.0, SAML.
- Conditional Access as a Zero Trust control: Conditional Access in Security.
- Just-in-time admin roles: Privileged Identity Management (child Topic).
- Provisioning users into SaaS apps: SCIM.
- On-premises source of hybrid identities: Active Directory Domain Services.
- Workload identities (service principals, managed identities): Service Accounts.
- Passkeys and Windows Hello for Business: Passwordless Authentication.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Entra ID compared with AD DS
| AD DS | Entra ID | |
|---|---|---|
| Structure | Forest, domains, OUs | Flat tenant; administrative units for delegation |
| Policy | Group Policy | Conditional Access, Intune for devices |
| App protocols | Kerberos, NTLM, LDAP | OIDC, OAuth 2.0, SAML, WS-Fed |
| Query interface | LDAP | Microsoft Graph (REST) |
| Devices | Domain join | Entra 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 Sync | Entra Cloud Sync | |
|---|---|---|
| On-premises component | Sync server with SQL database and sync engine | Lightweight provisioning agent(s), outbound only |
| Configuration | On the sync server | In the Entra admin center |
| Multiple disconnected forests | Complex | Supported natively |
| High availability | Staging-mode server | Multiple 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
| Log | Answers |
|---|---|
| Sign-in logs | Who signed in to what, result, error code, MFA, Conditional Access per policy |
| Audit logs | Directory changes: users, groups, roles, app consent |
| Provisioning logs | SCIM 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
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.