Company: Contoso Ltd
Contoso is a mid-sized company with 100 employees across three departments:
The Challenge:
The IT department is overwhelmed with password reset requests. Instead of IT handling ALL password resets company-wide, you need to:
This lab teaches the most important identity concept: Groups = WHO (identity) and Admin Units = WHERE (scope). Without Admin Units, any admin role is unrestricted and dangerous.
You'll create 8 user accounts: 3 Sales employees, 3 Finance employees, plus 2 department managers (Sales and Finance leads). These represent real employees in your organization.
Follow the same process as Sales users, but with these Finance team members:
Set the Department field to "Finance" for each user. This will enable automatic group membership through dynamic rules in Part 3.
Create admin users who will manage their respective departments:
James and Rachel should have their Department set to their respective departments. They will later be assigned admin roles scoped to their department's admin unit.
Groups tell you someone's role or department. They answer identity questions. Admin Units (Part 4) will answer "WHERE can they use power?"
You'll create 4 groups for department organization:
grp-sales → "These people are in Sales" (Sales team members)grp-sales-admins → "These people are Sales managers" (Sales team leads)grp-finance → "These people are in Finance"grp-finance-admins → "These people are Finance managers"grp-salesgrp-sales-adminsThe "admins" group is separate from the department group. James is in grp-sales-admins (answering WHO), and later in Part 4 he'll be scoped to au-sales (answering WHERE).
Follow the same pattern as Sales, with Finance members:
grp-finance
Mirror the sales-admins group pattern:
grp-finance-admins
Instead of manually adding/removing users, let rules handle it. When someone's department changes, they're automatically added or removed from groups. No admin intervention needed.
Dynamic groups require Entra ID P1 or P2 licensing. If your tenant doesn't have it, you can skip this part and understand the concept for exam purposes.
grp-all-employees-dynamic(user.accountEnabled -eq true)
With a rule like (user.department -eq "Sales"), when Contoso hires a new Sales person and sets their department to "Sales", they're automatically added to the group. No manual work needed.
If you see "Membership type: Dynamic User" is not available, your tenant doesn't have P1/P2 licensing. Understand the concept (rules auto-manage membership) and move to Part 4 to continue the lab.
Groups answer "WHO is this person?" (James is in grp-sales-admins = Sales manager)
Admin Units answer "WHERE can they use power?" (James can only manage au-sales = Sales users)
Without Admin Units, James would have unrestricted power to reset ANY password—dangerous!
You'll create two admin units (one per department) and then assign scoped admin roles to your department managers.
au-salesau-sales admin unit
Do NOT add James Park to au-sales members. He's the admin being delegated power. Only add the employees he will manage (Sarah, Tom, Lisa).
Follow the same pattern as Sales:
au-finance
au-finance
This is where Groups and Admin Units work together:
au-sales, go to Roles and administrators tab
Mirror the process for Sales:
au-finance, go to Roles and administrators tab
Rachel now has the same User Administrator power as James, but scoped only to Finance. This is true delegation with boundaries.
Now that scoped admins are in place, employees can reset their own passwords without IT involvement. This reduces ticket volume and empowers users.
grp-sales and grp-finance (limit to department groups)If you need to clean up resources after completing the lab, follow these steps in order:
grp-sales, grp-sales-admins, grp-finance, grp-finance-adminsau-sales and au-financeGroups answer "WHO?" (identity/role) · Admin Units answer "WHERE?" (scope of power)
| Aspect | Groups | Admin Units |
|---|---|---|
| Question Answered | WHO is this person? | WHERE can they use power? |
| Purpose | Identify role/department | Limit scope of delegation |
| Example | grp-sales-admins"James is a Sales manager" |
au-sales"James manages only Sales" |
| Without it | No identity/role tracking | Admins have unrestricted, dangerous power |
| With it | Clear role identification | Admin power is bounded and safe |
Large organizations (banks, healthcare, government) ALWAYS use Admin Units to delegate admin work safely. You won't find a tenant without them. This is essential identity architecture.