Home/Foundations01 of 05

IAM Foundations

The core ideas behind identity and access management: who or what an identity is, how it proves itself, how access is decided, and the protocols that carry it all. Everything in the Entra ID labs sits on top of these concepts.

Level BeginnerReading time about 20 minutesBest before Lab 01
Section 1

What IAM is

Identity and access management is the set of processes and technology that make sure the right identities get the right access to the right resources, at the right time, for the right reasons, and that you can prove it afterwards. In UK public sector writing you will often see the same discipline called IDAM.

Four words get used loosely in day-to-day conversation. Keeping them separate makes everything else easier to follow.

Identity

The real person, service or device that needs access.

Asha Smith, finance analyst
Account

The record a system keeps for that identity. One identity often has several.

asmith@northgate.co.uk
Credential

The secret or key the account uses to prove it is genuine.

Password plus a FIDO2 key
Entitlement

A specific permission the account has been granted.

Member of Finance-Readers
In plain terms

The identity is you. The account is your staff pass record. The credential is the pass and PIN you present. The entitlement is the list of doors the pass opens.

Section 2

The four As

Every access decision passes through the same four stages. Most identity incidents are a failure at one of them.

1Identification

The subject claims an identity, usually by entering a username.

2Authentication

The subject proves the claim with one or more factors.

3Authorisation

The system decides what the proven identity may do.

4Accountability

Actions are logged so they can be traced back to the identity.

Authentication answers who are you? Authorisation answers what are you allowed to do? Mixing the two up is common. A Conditional Access policy that requires MFA is about authentication strength; a role assignment such as User Administrator is about authorisation.

Section 3

Authentication factors and strength

Factors fall into three families: something you know (password, PIN), something you have (phone, security key) and something you are (fingerprint, face). Multi-factor authentication combines at least two different families.

Not all MFA is equal. The important question is whether the method can be phished: can an attacker trick the user into handing over, or approving, something the attacker then replays?

Password onlyWeakest
Password plus SMS or voice callPhishable, SIM swap
Password plus authenticator app codePhishable
Authenticator push with number matchingResists fatigue
FIDO2 key, passkey, Windows Hello, certificatePhishing-resistant

Phishing-resistant methods use public key cryptography bound to the genuine website's origin. A look-alike site cannot get a valid signature, so there is nothing to relay. That is why Lab 04 demands them for administrators.

Where this shows up in the labs

Lab 02 moves users off SMS, Lab 03 requires MFA for everyone, and Lab 04 raises admin sign-ins to a phishing-resistant authentication strength.

Section 4

Directories: Active Directory and Entra ID

A directory is the authoritative store of identities and their attributes. Most organisations run two, and they are often confused because of their names. Microsoft Entra ID was called Azure Active Directory until 2023, but it is not Active Directory moved to the cloud.

Active Directory Domain ServicesMicrosoft Entra ID
Where it runsDomain controllers in your data centreMicrosoft-run cloud service
Main protocolsKerberos, NTLM, LDAPOpenID Connect, OAuth 2.0, SAML 2.0
Typical resourcesDomain-joined PCs, file shares, on-premises appsMicrosoft 365, SaaS apps, Azure, modern web apps
StructureForests, domains, organisational units, Group PolicyFlat tenant, groups, administrative units, Conditional Access
Managed withAD tools, ActiveDirectory PowerShell moduleEntra admin centre, Microsoft Graph and its PowerShell SDK

When both exist, a synchronisation service (Entra Connect Sync or Cloud Sync) copies on-premises identities to Entra ID. That bridge is powerful and sensitive, which is the subject of Lab 09.

Section 5

The protocols you will meet

You do not need to know these byte by byte, but you should recognise each one and know what job it does.

ProtocolWhat it doesWhere you meet it
KerberosTicket-based authentication inside a Windows domainDomain sign-in, file shares, Seamless SSO (Lab 09)
NTLMOlder challenge and response authenticationLegacy apps; Microsoft has announced its deprecation in Windows
LDAPReading and writing directory dataApps that query Active Directory
SAML 2.0XML-based single sign-on between an identity provider and an appEnterprise SaaS apps, AD FS federation
OAuth 2.0Delegated authorisation: lets an app call an API on a user's behalf using access tokensMicrosoft Graph scopes in every lab
OpenID ConnectAn identity layer on top of OAuth 2.0 that adds the ID tokenModern sign-in to web and mobile apps
SCIM 2.0A standard API for creating, updating and removing accounts in other systemsAutomatic provisioning to SaaS apps
Section 6

How a modern sign-in works

This is the OpenID Connect authorisation code flow, which is what happens behind most "Sign in with Microsoft" buttons. Conditional Access is evaluated at step 3, which is why it can demand MFA or block the sign-in before any token is issued.

User and browserasmith Web apprelying party Microsoft Entra IDidentity provider APIe.g. Microsoft Graph 1Opens the app 2Redirect to /authorize 3 Authenticate the userand evaluate ConditionalAccess (MFA, device, risk) 4Authorisation code 5Code exchanged at /token 6ID token, access token, refresh token 7Call API with Authorization: Bearer access token 8 API checks signature, audience and scopes
OpenID Connect authorisation code flow. The ID token tells the app who signed in; the access token tells the API what the app may do.

The three tokens

  • ID token: proves to the app who the user is. Meant for the app, not for APIs.
  • Access token: a short-lived bearer token sent to an API. Its scopes (such as User.Read.All) limit what it can do.
  • Refresh token: lets the app get new access tokens without asking the user to sign in again. Stealing one is valuable to an attacker, which is why session controls and Continuous Access Evaluation matter.
Delegated versus application permissions

When you run Connect-MgGraph -Scopes ... interactively, you use delegated permissions: you act as yourself, limited by your own roles. The managed identity in Labs 06 and 11 uses application permissions: it acts as itself, with no signed-in user. Application permissions are usually broader, so grant them sparingly.

Section 7

Identity types in Microsoft Entra ID

Member users

Your workforce. Created in Entra or synchronised from Active Directory.

Guest users

External people invited through B2B collaboration. They authenticate at their own organisation.

Groups

Security and Microsoft 365 groups, assigned or dynamic. The main way to grant access at scale.

App registrations and service principals

The app's definition and its instance in your tenant. Secrets and certificates live here.

Managed identities

Service principals for Azure resources with no secret to manage. Used by the runbooks in Labs 06 and 11.

Devices

Registered, joined or hybrid joined devices. Device state can be a Conditional Access signal.

Non-human identities (service principals, managed identities, automation accounts) now usually outnumber people in a tenant, and they are often less well governed. Keep that in mind in every lab.

Section 8

Access models and principles

ConceptMeaningExample
RBACRole-based access control: permissions are bundled into roles, and people are assigned rolesHelpdesk Administrator can reset non-admin passwords
ABACAttribute-based access control: decisions use attributes of the user, resource and contextDynamic group of everyone with department = Finance
Least privilegeOnly the access needed, only for as long as it is neededJust-in-time role activation in Lab 07
Separation of dutiesNo single person can complete a sensitive process aloneWhoever creates accounts cannot also grant admin roles (Lab 08)
Need to knowAccess to information is limited to people whose job requires itBoard papers restricted to directors
Two different role systems

Entra roles (such as Global Administrator) control the directory and Microsoft 365. Azure RBAC roles (such as Owner or Contributor) control Azure subscriptions and resources. They are assigned separately, and holding one does not grant the other, although a Global Administrator can elevate themselves to manage all Azure subscriptions.

Section 9

Zero Trust in one picture

Zero Trust is a strategy, not a product. Microsoft describes it with three principles, and NIST SP 800-207 sets out the architecture in more depth. Identity is the main control plane in every version of it.

Verify explicitly

Decide every request using all available signals: identity, device, location, risk. Labs 03, 04 and 10.

Use least privilege

Just-in-time and just-enough access, reviewed regularly. Labs 07 and 08.

Assume breach

Limit blast radius, segment access, and detect and respond quickly. Labs 06, 09 and 10.

Section 10

Key takeaways

  • Keep identity, account, credential and entitlement separate in your head.
  • Authentication proves who you are; authorisation decides what you can do.
  • Prefer phishing-resistant methods, especially for privileged roles.
  • Active Directory and Entra ID are different directories with different protocols.
  • OAuth scopes and Entra roles are both authorisation, at different layers.
  • Non-human identities need the same governance as people.