Azure Active Directory (Microsoft Entra ID)
A beginner-friendly guide to Microsoft's cloud identity service: who it recognizes, how people and apps sign in, how access is controlled, and how to protect it all without confusion.
Every time you unlock your phone with your face, tap a bank card, or show an office badge at a gate, a system is asking one question: “Who are you, and are you allowed in?” The cloud has the same question, only asked billions of times a day, from every country, on every kind of device. Microsoft Entra ID is the service that answers it for Microsoft 365, Azure, and thousands of other applications.
You may also know this service by its older name, Azure Active Directory, often shortened to Azure AD. Microsoft renamed it to Microsoft Entra ID in 2023. The product is the same, only the name changed, so you will meet both names in books, videos, job posts, and interviews. In this guide we start from zero, explain every new word the first time it appears, use everyday comparisons, and build up until you can design an identity setup and explain it clearly.
1What Entra ID Is in Simple Words
Start with the idea, then the name.
Identity means a digital record that proves who a person, a device, or a program is. Microsoft Entra ID is a cloud service that stores these identities and checks them whenever someone tries to sign in. It is what is called an identity and access management service, or IAM. The word identity covers the “who,” and the word access covers the “what are they allowed to do.”
When you sign in to Outlook on the web, open Teams, or log in to the Azure Portal, Entra ID is usually the service doing the checking behind the scenes. Many non-Microsoft apps, such as Salesforce, Slack, Zoom, and thousands of others, can also use it for sign-in.
Think of a large office building with a reception desk. Reception checks your identity, gives you a badge, and decides which floors your badge opens. Entra ID is the reception desk for the cloud. One desk, one badge, and many doors it can open.
Azure Active Directory and Microsoft Entra ID are the same service under two names. Entra is also the name of a wider family of identity and network access products, and Entra ID is the core directory inside that family.
2The Problem Identity Services Solve
Imagine life without a shared identity system.
Suppose a company uses twenty different applications. Without a central identity service, every application keeps its own list of users and passwords. An employee must remember twenty passwords, reuse them, or write them on sticky notes. When the employee leaves, someone must remember to delete the account in all twenty places, and if one is forgotten, a former employee may still have access.
A central identity service fixes this. People have one account, applications trust that central service, and turning off the account in one place shuts the doors everywhere. Security rules, like requiring a second proof of identity, can also be applied in one spot instead of twenty.
Without central identity
- Many passwords per person
- Forgotten accounts after people leave
- Inconsistent security rules
- No single view of who has access to what
With Entra ID
- Single sign-on across many apps
- One place to disable or change an account
- Consistent multi-factor and risk rules
- Central logs of who signed in and when
3A Short History
Where this service came from explains many of its terms.
Long before the cloud, most companies used Active Directory Domain Services, usually written as AD DS, which was introduced with Windows 2000. It ran on servers inside the company building and managed Windows computers and users on the office network. It used protocols called Kerberos and NTLM for sign-in, and a directory language called LDAP for lookups.
When companies began using web applications and cloud services, the old design did not fit well. Web apps live on the internet, not inside one office network, and they need different protocols. Microsoft built a new cloud directory to support Microsoft 365 and Azure, first known as Windows Azure Active Directory, later Azure Active Directory, and finally Microsoft Entra ID.
Office era
Companies run Active Directory on servers in their own buildings to manage Windows computers and users.
Cloud directory appears
A cloud-based directory is created to support Microsoft online services and Azure.
Hybrid years
Companies connect their office directory to the cloud one, so users have the same login in both places.
Security grows
Features such as multi-factor sign-in, conditional access, and risk detection become central.
Renamed Entra ID
The service is renamed Microsoft Entra ID as part of a larger identity and access product family.
4Core Concepts You Must Know
Learn these words once and every Entra ID conversation becomes easier.
Tenant
A tenant is a dedicated, private instance of Entra ID that belongs to one organization. It holds that organization’s users, groups, applications, and settings. When a company signs up for Microsoft 365 or Azure, a tenant is created. Each tenant has a unique ID and a default domain name that ends with onmicrosoft.com, and companies add their own domain names, such as their company website name.
Directory
You will often hear “directory” used as another word for tenant. Think of it as the phone book of the organization, with much more information than names and numbers.
Users
A user is an identity for a person. It has a sign-in name, a password or other way to prove identity, and properties such as department and job title. Users can be members, who belong to the organization, or guests, who are outside people invited to collaborate.
Groups
A group is a collection of users, and sometimes devices or other groups, so that you can give access to many people at once. There are two main kinds. A security group is used to give access to resources. A Microsoft 365 group is used for collaboration and comes with a shared mailbox, calendar, and files. Groups can have members assigned by hand, or dynamic membership, where rules add and remove people automatically, such as “everyone whose department is Sales.”
Applications and service principals
Programs also need identities. An application registration is the definition of an app in Entra ID, like a birth certificate. A service principal is the actual identity of that app inside a particular tenant, like an employee badge issued to the app. The part of the portal named Enterprise applications shows these in-tenant identities.
Managed identities
A managed identity is a special identity that Azure creates and manages for an Azure resource, such as a virtual machine or a web app. The resource can then prove who it is to other services without any stored password. Azure handles the secrets and rotates them automatically.
Devices
Devices can have identities too. A device can be registered, which is common for personal phones, joined, which is common for company-owned computers that sign in directly with work accounts, or hybrid joined, for computers that belong to both the old office directory and the cloud one. Knowing the device lets you apply rules such as “only company-managed laptops may open sensitive data.”
flowchart TD
T["Tenant - one organization's Entra ID"] --> U["Users - members and guests"]
T --> G["Groups - security and Microsoft 365"]
T --> A["Application registrations and service principals"]
T --> MI["Managed identities for Azure resources"]
T --> D["Devices - registered, joined, hybrid joined"]
T --> R["Roles and policies"]
G --> U
A tenant is like a large school with its own register. Users are students and teachers, groups are classes and clubs, applications are the school’s tools such as the library system, and managed identities are the automatic keys that the building’s machines carry so they can open certain doors without anyone remembering a password.
5Authentication Versus Authorization
Two words that sound alike but mean different things.
Authentication, sometimes shortened to AuthN, answers “Who are you?” It is the process of proving identity, for example with a password, a code sent to your phone, a fingerprint, or a security key. Authorization, sometimes shortened to AuthZ, answers “What are you allowed to do?” It decides whether the proven identity may read a file, delete a database, or approve a payment.
At an airport, showing your passport to prove who you are is authentication. Having a boarding pass that allows you onto one specific flight is authorization. A passport alone does not let you board every plane.
Where each is handled
| Question | Handled by | Example |
|---|---|---|
| Who is this? | Entra ID authentication | Password plus phone approval |
| May they open this app? | Entra ID assignment and conditional access | Only the Sales group can open the CRM tool |
| May they manage Azure resources? | Azure role-based access control | Contributor role on a resource group |
| May they manage the directory itself? | Entra roles | User Administrator can reset passwords |
| May they read data inside an app? | The app’s own permissions and tokens | A calendar app lets a user see only their own events |
Entra roles, which manage the directory, and Azure roles, which manage Azure resources, are two separate systems. Being a Global Administrator of the directory does not automatically give you rights over Azure subscriptions, though it can be raised on purpose in emergencies.
6How Sign-In Works Internally
What actually happens between typing your name and seeing your inbox?
Modern sign-in uses open standards. The most common are OpenID Connect, which handles proving who a user is, OAuth 2.0, which handles giving an app limited permission to act, and SAML, an older but still popular standard for single sign-on in business apps. You do not need to memorize the details, but the idea behind them is simple: the application never sees your password. It trusts Entra ID, and Entra ID hands the application a signed proof, called a token.
sequenceDiagram
participant U as User in browser
participant A as Application
participant E as Microsoft Entra ID
U->>A: Open the application
A-->>U: Redirect to Entra ID to sign in
U->>E: Enter name, password, and second proof
E->>E: Check identity, risk, and conditional access rules
E-->>U: Send back a signed token
U->>A: Present the token
A->>A: Check the signature and the permissions in the token
A-->>U: Show the application
Understanding tokens
A token is a small, digitally signed piece of data that says who you are and what you may do. Applications check the signature to make sure that Entra ID really issued it and that nobody changed it. Tokens last for a limited time, often around an hour, which limits the damage if one is stolen. There are different kinds, such as an ID token, which says who the user is, an access token, which allows calling a particular service, and a refresh token, which lets the app quietly get new tokens without asking the user to sign in again.
A token is like a wristband at a theme park. You prove your identity once at the gate and receive a wristband. After that, each ride only checks the wristband and does not ask for your passport again. The wristband expires at closing time.
Single sign-on
Single sign-on, or SSO, means signing in once and then reaching many apps without typing credentials again. Entra ID keeps a session in your browser, so when a second app asks for proof, Entra ID can answer from the existing session. This improves comfort and security, because fewer passwords are typed and stored.
7Ways to Prove Who You Are
Passwords alone are weak. Stronger methods exist.
Passwords are often reused, guessed, or stolen by fake websites. Multi-factor authentication, called MFA, asks for two or more kinds of proof from different groups: something you know, such as a password, something you have, such as a phone, and something you are, such as a fingerprint.
Password and PIN
Familiar but the weakest by themselves, because they can be guessed, phished, or leaked.
Authenticator app
An app on your phone that shows an approval prompt or a changing code.
Security keys and passkeys
Hardware keys or device-based passkeys that use cryptography and resist fake-website attacks very well.
Biometrics
Fingerprint or face recognition, usually used to unlock a device or passkey, not sent over the internet.
Passwordless sign-in
The long-term goal is to remove passwords entirely. A user unlocks a passkey with a fingerprint, face, or PIN on their own device, and the device proves identity to Entra ID with cryptography. Nothing secret travels across the internet that an attacker could steal and reuse, which is why this approach is considered much safer.
Self-service password reset
Self-service password reset, or SSPR, lets users fix a forgotten password themselves after proving their identity another way. This reduces calls to the help desk and speeds up work.
Not all second factors are equally strong. Text messages can be intercepted by a determined attacker, and approval prompts can be abused by “prompt bombing,” where an attacker sends many requests hoping the user taps approve. Prefer stronger options such as number matching in an authenticator app, passkeys, and security keys.
8Conditional Access: Smart Rules for Sign-In
Not every sign-in deserves the same trust.
Conditional Access is the rule engine of Entra ID. It works like a series of “if this, then that” statements. If a user, an app, a device, a location, and a risk level match a certain pattern, then Entra ID can allow the sign-in, require extra proof, or block it.
flowchart TD
S["Sign-in attempt"] --> C1{"Who is the user and which app?"}
C1 --> C2{"Is the device managed and healthy?"}
C2 --> C3{"Is the location or network trusted?"}
C3 --> C4{"Is the sign-in risk low?"}
C4 -- "Low risk" --> ALLOW["Allow, maybe with MFA"]
C4 -- "Medium risk" --> MFA["Require extra proof such as MFA"]
C4 -- "High risk" --> BLOCK["Block or force password change"]
C2 -- "Unmanaged device" --> LIMIT["Allow limited web access only"]
Common example rules
- Require MFA for administrators. Powerful accounts always need a second proof.
- Block legacy authentication. Old protocols that cannot do MFA are a favorite entry point for attackers.
- Require a compliant device for sensitive apps, so company data stays on managed, secured machines.
- Block sign-ins from countries where the company has no staff.
- Require stronger proof when a sign-in looks unusual, such as a new location or an impossible travel pattern.
Security defaults
For small organizations or beginners, Microsoft offers security defaults, a ready-made package of basic protections such as requiring MFA registration and blocking old authentication methods. Larger organizations replace this with their own Conditional Access rules. Check which licenses are needed for the features you want, because some require paid editions.
Start new Conditional Access rules in report-only mode, where Entra ID shows what would have happened without enforcing it. This helps you avoid locking out real users by mistake.
9Hybrid Identity: Connecting Old and New
Most real companies live in both worlds at once.
Many organizations still run Active Directory Domain Services on their own servers because old applications and Windows computers depend on it. At the same time, they want Microsoft 365 and cloud apps. The solution is hybrid identity, where the office directory and Entra ID are connected, so the same person has one identity in both places.
A tool named Microsoft Entra Connect, along with a lighter option called Cloud Sync, copies users, groups, and sometimes password information from the office directory to the cloud. People then use one username and password for both worlds.
flowchart LR
ADDS["On-premises Active Directory - office servers"] --> SYNC["Entra Connect or Cloud Sync"]
SYNC --> ENTRA["Microsoft Entra ID - cloud"]
ENTRA --> M365["Microsoft 365"]
ENTRA --> AZ["Azure resources"]
ENTRA --> SAAS["Third-party cloud apps"]
ENTRA --> PROXY["Application Proxy - safe access to internal web apps"]
PROXY --> INTERNAL["Internal company web apps"]
Sign-in methods for hybrid
| Method | How it works | Trade-off |
|---|---|---|
| Password hash synchronization | A secure, scrambled form of the password hash is synced so Entra ID can check sign-ins itself | Simple and resilient, and it allows leaked-credential detection |
| Pass-through authentication | Entra ID forwards the check to an agent inside the office network | The password check stays on-site, but needs always-available agents |
| Federation | Sign-in is handled by a separate on-site federation service | Most flexible, but most complex and a heavier thing to keep running |
Microsoft Entra Domain Services is a separate managed service that gives you classic domain features, such as domain join and legacy protocols, in the cloud, for older applications that cannot use modern sign-in. It is not the same as Entra ID itself.
Entra ID versus Active Directory Domain Services
| Question | AD DS | Entra ID |
|---|---|---|
| Where it runs | On servers you manage | In the cloud, managed by Microsoft |
| Main protocols | Kerberos, NTLM, LDAP | OpenID Connect, OAuth 2.0, SAML |
| Structure | Domains, trees, forests, organizational units | Flat tenant with users, groups, and apps |
| Best for | Windows servers and office networks | Web apps, SaaS, and cloud resources |
| Device management | Group Policy | Device identity with tools such as Microsoft Intune |
10Working With People Outside Your Company
Business rarely stays inside one organization.
B2B collaboration
Business-to-business collaboration, or B2B, lets you invite people from other companies as guest users. A guest uses their own work account to sign in, and you control what they can open. You do not need to create and manage another password for them. When the project ends, remove the guest, and their access ends.
Customer identity
When you build a public app for customers, you need sign-up and sign-in for people who are not employees. Microsoft provides external identity offerings for this, including the older Azure AD B2C service and the newer Microsoft Entra External ID. Product names and capabilities in this area have been changing, so check the current Microsoft documentation before you plan a new project.
Production example: a company sharing project files with partners
A manufacturer invites supplier employees as guests to a shared project space. The suppliers sign in with their own company accounts, MFA is enforced, and access is reviewed every few months. When a contract ends, the guests are removed in one step.
11Roles, Permissions, and Least Privilege
The more power an account has, the more carefully it must be guarded.
Entra roles control who may manage the directory itself. The best-known is Global Administrator, which can do almost anything in the tenant. Other roles are narrower, such as User Administrator, who manages users, or Helpdesk Administrator, who can reset certain passwords. The guiding principle is least privilege, giving each person only the smallest role that lets them do their job.
Privileged Identity Management
Privileged Identity Management, called PIM, makes powerful roles eligible instead of permanent. A person must activate the role when needed, for a limited time, perhaps with approval and a written reason. After the time ends, the power disappears. This follows the idea of just-in-time access, like borrowing a key for one hour instead of keeping a copy forever. This feature usually needs a higher paid license.
Access reviews
Access reviews are scheduled checks where managers or owners confirm whether people still need their access. They help remove “permission creep,” which is the slow build-up of access that people no longer need, especially after they change jobs.
Keep the number of permanent Global Administrators very small. Also keep one or two emergency “break-glass” accounts, which are carefully protected cloud-only accounts stored securely and used only if normal administration is locked out, and monitor them for any use.
12Security Features and Threat Protection
Attackers target identities more than anything else, so protection is built in.
Identity Protection
Looks for risky sign-ins and risky users, such as leaked passwords, impossible travel, or unfamiliar locations, and can respond automatically.
Password protection
Blocks weak and commonly guessed passwords and can ban words specific to your company.
Smart lockout
Slows down repeated wrong guesses while still letting real users in.
Identity governance
Access packages, reviews, and lifecycle workflows for joining, moving, and leaving staff.
Common attacks and defenses
| Attack | What it is | Main defenses |
|---|---|---|
| Phishing | A fake page tricks users into entering a password | Passkeys, security keys, user training, conditional access |
| Password spray | One common password is tried against many accounts | Password protection, smart lockout, MFA |
| Credential stuffing | Leaked passwords from other sites are tried here | Leaked credential detection, MFA, unique passwords |
| Token theft | A stolen token is reused by an attacker | Short lifetimes, device compliance rules, session controls |
| Consent phishing | A malicious app asks the user to grant it access | Restrict who can approve apps, admin consent workflows |
| Privilege abuse | An attacker or insider uses a powerful role | Least privilege, PIM, alerts, access reviews |
13Monitoring, Logging, and Metrics
If you cannot see sign-ins, you cannot protect them.
Entra ID records two main kinds of logs. Sign-in logs show who signed in, to which app, from where, with which device, whether MFA was used, and whether it succeeded. Audit logs show changes made to the directory, such as users created, roles assigned, or policies edited.
These logs can be sent to Azure Monitor and a Log Analytics workspace, where you can search them, keep them for longer, build dashboards, and set alerts. Security teams often connect them to a SIEM, short for security information and event management system, such as Microsoft Sentinel, which correlates signals from many systems to spot attacks.
What to watch
- Sudden spikes in failed sign-ins, which may mean a password spray.
- Sign-ins from unusual countries or at odd hours for a given user.
- New administrator role assignments, especially outside business hours.
- Use of break-glass accounts, which should almost never happen.
- New applications granted broad permissions.
- Conditional Access policy changes.
Built-in logs are kept only for a limited time, which depends on your license. If you need records for audits or investigations, export them to long-term storage from the start.
14Licensing and Editions
Features depend on the plan, so know the rough levels.
Entra ID is offered in several levels. Names, bundles, and prices change often, so use this table only as a rough map and confirm on Microsoft’s current pages.
| Level | Typical capabilities |
|---|---|
| Free | Basic directory, users and groups, single sign-on to many apps, basic security reports, security defaults |
| Premium P1 | Conditional Access, dynamic groups, self-service password reset with sync back, hybrid features, Application Proxy |
| Premium P2 | Everything in P1 plus Identity Protection with risk-based policies and Privileged Identity Management |
| Governance add-on | Advanced lifecycle, entitlement management, and access reviews at scale |
Many Microsoft 365 plans include some Entra ID capabilities already. Check what you already own before buying separate licenses.
15Advantages, Disadvantages, and Trade-offs
An honest look at both sides.
Advantages
- One identity for Microsoft 365, Azure, and thousands of other apps
- Strong built-in security such as MFA, conditional access, and risk detection
- Managed by Microsoft with high availability, no servers for you to patch
- Works with open standards, so many non-Microsoft apps connect easily
- Supports hybrid, guests, devices, and workloads
- Rich logs for audits and investigations
Disadvantages
- Advanced security features need paid licenses
- Rules can be complex, and mistakes can lock out users
- Heavy dependency: if the identity service is misconfigured or unreachable, many apps are affected
- Naming and product changes make documentation confusing
- Hybrid setups need careful planning and ongoing care
- Some legacy apps cannot use modern sign-in
The central trade-off
Security and convenience pull in different directions. Stricter rules reduce risk but can annoy users and create support tickets. The skill lies in applying stronger controls where the risk is highest, such as administrators and sensitive data, and keeping everyday access smooth, for example through passkeys and single sign-on.
16Anti-Patterns to Avoid
These mistakes appear again and again.
What it is
Many permanent Global Administrators using normal daily accounts.
Why it hurts
A single phishing email aimed at one of them can hand an attacker control of the whole tenant.
Better approach
Keep very few, use separate admin accounts with strong MFA, and use PIM for just-in-time activation.
What it is
Storing application passwords or secrets in code or in shared documents.
Why it hurts
Anyone with the code or the file can impersonate the application, and secrets are rarely rotated.
Better approach
Use managed identities where possible, and keep other secrets in Azure Key Vault with expiry reminders.
What it is
Allowing old authentication methods and skipping MFA for “convenience.”
Why it hurts
Attackers specifically look for accounts without MFA and for old protocols that bypass it.
Better approach
Require MFA for everyone, block legacy authentication, and move users to passkeys over time.
What it is
Creating a Conditional Access rule that applies to everyone without any exceptions or testing.
Why it hurts
A small mistake can lock out every user, including the administrators who could fix it.
Better approach
Test in report-only mode, exclude break-glass accounts, roll out in stages, and document every policy.
What it is
Letting guest accounts and old app permissions pile up forever.
Why it hurts
Forgotten guests and unused apps are quiet doors that attackers can use.
Better approach
Run access reviews, set guest expiry, and regularly clean up unused enterprise applications.
“Entra ID is just the cloud copy of the office Active Directory.” Not true. It uses different protocols, has a flat structure, and is built for web and cloud apps. They can be connected, but they are different systems.
17Best Practices Checklist
A path from a fresh tenant to a well-run one.
Secure the first admins
Protect initial administrators with MFA and create two emergency accounts stored safely.
Turn on basic protection
Enable security defaults, or build Conditional Access rules requiring MFA and blocking old protocols.
Use groups for access
Give access to groups, not individuals, and use dynamic groups where rules make sense.
Apply least privilege
Pick narrow roles, use PIM for powerful ones, and limit who can approve applications.
Move toward passwordless
Offer passkeys and security keys, starting with administrators and high-risk users.
Connect applications with single sign-on
Integrate apps so users sign in once, and remove separate local passwords where you can.
Log and alert
Send sign-in and audit logs to a central workspace and alert on risky events.
Review regularly
Run access reviews for roles, groups, and guests, and clean up unused apps and accounts.
Plan for hybrid carefully
Choose a sign-in method that suits your needs, keep sync servers healthy, and document recovery steps.
18Real-World Stories
How different organizations rely on Entra ID.
Microsoft 365 at a global company
A multinational uses Entra ID to sign tens of thousands of employees into email, Teams, and documents. MFA is required, risky sign-ins trigger extra checks, and leaving employees lose access everywhere when their account is disabled once.
A hospital with hybrid systems
A hospital keeps older clinical systems on its own Active Directory while moving email and collaboration to the cloud. Directory sync gives staff one login, and conditional access limits access to patient systems to managed, healthy devices.
A software company on Azure
A software firm runs web apps on Azure, uses managed identities so apps talk to databases without stored passwords, and requires developers to activate admin roles through PIM only when deploying.
A start-up with many SaaS tools
A small team connects its project tool, chat, and customer system to Entra ID. New hires get access through group membership on day one, and departures are handled in minutes, with no forgotten accounts.
19Frequently Asked Questions
20Summary and Key Takeaways
Key Takeaways
- Entra ID is Microsoft’s cloud identity service. It was called Azure Active Directory until 2023, and it proves who people, devices, and apps are and decides what they may open.
- Know the building blocks. Tenants hold users, groups, devices, app registrations, service principals, and managed identities, and roles decide who manages what.
- Sign-in uses tokens and open standards. OpenID Connect, OAuth 2.0, and SAML let apps trust Entra ID without ever seeing your password, and single sign-on removes repeated logins.
- Strong proof beats passwords. Use MFA everywhere, move toward passkeys and security keys, and let Conditional Access apply smart rules based on user, device, location, and risk.
- Hybrid is normal. Entra Connect or Cloud Sync links the office Active Directory with the cloud, and Entra ID is not the same as AD DS even though they work together.
- Protect, watch, and review. Apply least privilege with PIM, keep emergency accounts, send sign-in and audit logs to a central place, set alerts, and run regular access reviews.