Skip to content

Managing Users & Groups in Microsoft Entra ID โ€‹

๐Ÿ“ Exam Update (July 2023): Microsoft removed Administrative Units, Manage Devices, and Bulk Operations from the AZ-104 exam. Those topics have been moved to archived-topics-not-on-exam.md.

Section Overview


The Big Picture โ€‹

Before we dive in, let's understand how everything connects:


1. Creating Users โ€‹

Users are the foundation of everything. No users = nobody can do anything.

Three Ways to Add Users โ€‹

Creating an Internal User โ€‹

Path: Entra ID โ†’ Users โ†’ + New user โ†’ Create user

Required Fields:

  • Username: walter.white@yourdomain.com
  • Display Name: Walter White

That's it! Everything else is optional. Azure will auto-generate a password.

๐Ÿ’ก Free Tier Limit: Up to 500,000 objects (users + groups + contacts). That's plenty!

What Can a New User Do? โ€‹

Nothing. A brand new user has zero permissions. They can log into Azure Portal and... stare at a blank screen. You need to assign roles or add them to groups for them to actually DO anything.


๐Ÿงช Lab: Creating Walter White with a Custom Domain โ€‹

Let's make this fun! I set up terralearn.online as my custom domain and created everyone's favorite chemistry teacher.

Step 1: Verify Your Domain โ€‹

First, I added my domain and Azure asked me to prove I own it:

Domain Setup in Entra ID

Verification Prompt

I added the TXT record in GoDaddy:

GoDaddy DNS Settings

Got an error at first (DNS propagation takes time):

Verification Error

But after waiting... success!

Domain Verified

Quick DNS Check:

bash
nslookup -type=TXT terralearn.online
# Output: terralearn.online text = "MS=ms86736134"

Step 2: Create Walter White โ€‹

Creating Walter White

Creation Phase

User Created

Step 3: First Login Experience โ€‹

When Walter logs in for the first time:

First Login

He's forced to set up MFA (because we're using P2):

MFA Enforcement

MFA Complete

Step 4: Assign P2 License & PIM Role โ€‹

Walter needs his P2 license to access the good stuff:

P2 License Assigned

Now let's make him a Global Admin... but only for a day (that's PIM!):

Global Admin for a Day

Walter is Happy

Step 5: Activating the PIM Role โ€‹

Walter goes to activate his eligible role:

PIM Activation

Role Activated!

๐ŸŽ‰ Walter White is now a Global Admin! (for exactly 24 hours)


2. Understanding Groups โ€‹

When you have hundreds of users, managing them individually is a nightmare. Groups let you organize users and assign permissions in bulk.

Assigned vs. Dynamic Groups โ€‹

FeatureAssignedDynamic
How members are addedManually by adminAutomatically by query
Use caseProject teams, ad-hoc groupsDepartments, job titles
MaintenanceYou manage itAzure manages it
License requiredFreeP1 or P2

Dynamic Group Magic โ€‹

Dynamic groups use queries to automatically add/remove members based on user attributes.

Example Rule:

(user.department -eq "Quantum")

This automatically adds anyone with Department = Quantum to the group!


๐Ÿงช Lab: Creating Dynamic Groups with Famous Scientists โ€‹

I created some users and a dynamic group for my Quantum Physics department:

Users Created โ€‹

UserEmailDepartment
Albert Einsteinalbert.einstein@terralearn.onlineQuantum
Marie Curiemarie.curie@terralearn.onlineQuantum
Isaac Newtonisaac.newton@terralearn.onlineClassical
Niels Bohrniels.bohr@terralearn.onlineQuantum

Albert Einstein Created

Marie Curie Created

Niels Bohr Created

Creating the Dynamic Group โ€‹

Dynamic Group Setup

Dynamic Query

How Dynamic Groups Actually Work โ€‹

I noticed some weird behavior at first:

Weird Behavior

Key Learning: Dynamic groups are rule-based, not event-based:

  • Membership is evaluated against current user attributes
  • Doesn't matter if user existed before the group or vice versa
  • If user matches the rule at evaluation time โ†’ they're in!
  • Azure periodically re-evaluates (not instant)

After waiting for sync:

Sync Happening

โš ๏ธ Important: You CANNOT assign Entra ID roles to dynamic groups! Keep that in mind.


3. Managing Licenses โ€‹

Licenses unlock premium features. Here's the deal:

  • You buy licenses for your tenant
  • You assign licenses to specific users
  • Only licensed users can use premium features

The "Usage Location" Gotcha โ€‹

When you try to assign a license, you might see:

โŒ "License cannot be assigned to a user without usage location specified"

Why? Some Microsoft services have legal restrictions in certain countries. You MUST set a usage location before assigning licenses.

Fix: User โ†’ Edit Properties โ†’ Usage Location โ†’ Pick a country โ†’ Save

License Screen

Walter's Licenses

Cost-Saving Strategy โ€‹

You don't need to license EVERY user! Common approach:

  • P2 Licenses: Admins and security-sensitive users
  • P1 Licenses: Power users who need Conditional Access
  • Free: Regular users with basic needs

4. External (Guest) Users โ€‹

Sometimes you need to collaborate with people outside your organizationโ€”contractors, partners, vendors. You don't want them in your AD, but you need to work with them.

Member vs. Guest โ€‹

AspectMemberGuest
IdentityYour domainExternal email (Gmail, company email)
Created byAdmin createsAdmin invites
OnboardingImmediate accessMust accept invitation
Default permissionsFull memberLimited (configurable)

How to Invite a Guest โ€‹

Path: Entra ID โ†’ Users โ†’ + New user โ†’ Invite external user

  1. Enter their email (any email worksโ€”Gmail, corporate, whatever)
  2. Add a personal message ("Hey! This is for the Q4 project...")
  3. Click Invite
  4. They receive an email and must accept to join

Guest Security โ€‹

Guests follow the SAME security rules as members:

  • โœ… Conditional Access applies
  • โœ… MFA can be enforced
  • โœ… Permissions must be explicitly granted
  • โœ… Access reviews can include guests

5. Self-Service Password Reset (SSPR) โ€‹

The most annoying IT ticket: "I forgot my password." SSPR lets users fix this themselves.

SSPR Settings โ€‹

Path: Entra ID โ†’ Password reset

SettingOptions
EnabledNone / Selected groups / All
Authentication methodsEmail, Phone, Authenticator, Security Questions
Number of methods required1 or 2
RegistrationRequire users to register on sign-in

Password Reset Settings

Simple Settings Screen

Important Notes โ€‹

๐Ÿ“Œ Admins always have SSPR enabled and MUST use 2-factor to reset. This isn't configurable.

๐Ÿ“Œ SSPR requires a P1/P2 license for regular users (free for admins only)


๐Ÿงช Lab: SSPR Adventure with Einstein โ€‹

I wanted to test SSPR with Albert Einstein's account. It was... an adventure.

Enable SSPR for Everyone โ€‹

SSPR for Groups

SSPR Enabled

The Problem โ€‹

When Einstein tried to reset his password:

Einstein Forgot Password

He was asked to verify via EMAIL:

Email Verification

Wait... if he can access his email, why does he need to reset his Azure password? ๐Ÿค”

The Problem

Other users faced the same issue:

Same Problem

The Fix: Change Authentication Methods โ€‹

I went into Authentication methods policy and made Authenticator app the primary method:

Auth Method Policy

Changed Auth Methods

Now when Einstein resets his password, he uses the Authenticator app (which makes way more sense!):

Success!

๐ŸŽ‰ Success! Einstein's new password: Reflex@893606

Key Learning โ€‹

The default SSPR methods aren't always logical. Consider:

  • Email verification: Useless if their email IS their Azure account
  • Authenticator app: Best choice for most scenarios
  • SMS: Good backup but less secure

Quick Reference โ€‹

TaskPath
Create userEntra ID โ†’ Users โ†’ + New user โ†’ Create
Invite guestEntra ID โ†’ Users โ†’ + New user โ†’ Invite external
Create groupEntra ID โ†’ Groups โ†’ + New group
Assign licenseUsers โ†’ [User] โ†’ Licenses โ†’ + Assignments
Enable SSPREntra ID โ†’ Password reset โ†’ Properties
Configure auth methodsEntra ID โ†’ Protection โ†’ Authentication methods

What's Next? โ€‹

With users and groups set up, you're ready to explore:

  • Conditional Access (the security brain)
  • Privileged Identity Management (just-in-time admin access)
  • Role-Based Access Control (who can do what)

๐Ÿ“š Resources:

Released under the MIT License.