Domain 1 β€” Module 3 of 8 38%
3 of 27 overall
Domain 1: Implement and Manage User Identities Free ⏱ ~14 min read

Managing Users & Groups

Create users and groups, manage custom security attributes, and automate bulk operations with PowerShell β€” the daily bread of identity administration.

Users and groups β€” the building blocks

Simple explanation

Users are people. Groups are teams. Together they’re how you organise who gets what.

Imagine a school. Every student (user) has a name, a class, and a locker. Instead of assigning textbooks to each student individually, the teacher gives them to a class (group) β€” everyone in Class 3B gets the science textbook automatically.

Entra ID works the same way. Create users, put them in groups, then assign licences, apps, and policies to the groups. When someone joins or leaves, just update the group β€” everything else follows.

User management essentials

Creating users

Two paths to create a user:

  1. Entra admin center β†’ Users β†’ New user β†’ fill in properties
  2. PowerShell β†’ New-MgUser command (for automation)

Key user properties:

PropertyRequired?Example
User principal name (UPN)Yesjake@coastlinecreative.co.nz
Display nameYesJake Torres
PasswordYes (initial)Auto-generated or manually set
Job titleNoIT Administrator
DepartmentNoTechnology
Usage locationYes (for licensing)NZ, US, AU
Account enabledYesTrue / False
Exam tip: usage location is mandatory for licensing

You cannot assign a licence to a user without a usage location set. This catches many admins off-guard β€” they create users, try to assign M365 licences, and get an error.

Why? Microsoft needs to know the user’s country for legal and service availability reasons (some features aren’t available in all regions).

User types

TypeSourceManaged WhereExample
Cloud userCreated in Entra IDEntra admin centerNew hire at cloud-only org
Synced userCreated in on-prem ADOn-prem AD (changes sync up)Employee at hybrid org
Guest userInvited via B2BExternal (home tenant)Contractor from another company

Group types β€” security vs M365

FeatureSecurity GroupMicrosoft 365 Group
Primary purposeControl access to resourcesCollaboration (mailbox, SharePoint, Teams)
MembersUsers, devices, service principals, other groupsUsers only
Shared mailbox
SharePoint site
Teams teamCan be Teams-enabled
Can assign licences
Can scope CA policies
Dynamic membership
Nesting (groups in groups)

Membership types

TypeHow Members Are AddedBest For
AssignedManually add/remove membersSmall, stable groups
Dynamic userAutomatic based on user attribute rulesDepartment-based groups (e.g., all Finance users)
Dynamic deviceAutomatic based on device attributesDevice management groups (e.g., all Windows 11 devices)

Dynamic membership rule example: user.department -eq "Finance" -and user.country -eq "NZ"

This automatically adds all NZ-based Finance users to the group. When someone transfers out of Finance, they’re automatically removed.

Custom security attributes

Custom security attributes are business-specific metadata you attach to users and applications. They’re like custom columns you add to a spreadsheet.

Why they matter:

  • Tag users with business-relevant data (project codes, clearance levels, cost centres)
  • Use attributes in Conditional Access policies or entitlement management
  • Data is stored securely β€” only users with the Attribute Assignment Administrator role can read/write them

Structure:

  • Attribute set = a category (e.g., β€œHR” or β€œSecurity”)
  • Attribute definition = a specific attribute within the set (e.g., β€œClearanceLevel”)
  • Attribute value = the value assigned to a user (e.g., β€œTop Secret”)
Scenario: Priya tags clinical staff at Meridian Health

Priya creates a custom security attribute set called β€œClinical” with attributes:

  • ClearanceLevel: β€œStandard”, β€œElevated”, β€œCritical”
  • Ward: β€œEmergency”, β€œPaediatrics”, β€œSurgery”, etc.

She then creates a Conditional Access policy: IF user’s ClearanceLevel is NOT β€œCritical” β†’ THEN block access to the patient records app from unmanaged devices.

Why not use groups? Groups are binary (you’re in or out). Custom attributes are multi-valued and more flexible β€” a user can have ClearanceLevel=Elevated AND Ward=Emergency simultaneously, enabling fine-grained access control.

Bulk operations β€” don’t click 500 times

When you need to create, invite, or delete many users at once, use bulk operations.

Entra admin center approach:

  1. Download the CSV template from Users β†’ Bulk operations
  2. Fill in user details (one row per user)
  3. Upload the CSV β†’ Entra processes it

PowerShell approach (more powerful):

# Bulk create users from CSV
$users = Import-Csv -Path "NewHires.csv"
foreach ($user in $users) {
    New-MgUser -DisplayName $user.Name `
               -UserPrincipalName $user.UPN `
               -PasswordProfile @{ Password = $user.TempPassword } `
               -UsageLocation $user.Location `
               -AccountEnabled
}
Exam tip: bulk operation types

The Entra admin center supports these bulk operations via CSV:

  • Bulk create β€” create new users
  • Bulk invite β€” invite external/guest users
  • Bulk delete β€” delete users
  • Download users β€” export user list

PowerShell (Microsoft Graph PowerShell SDK) is more flexible β€” you can bulk-update properties, assign licences, add to groups, and chain operations together.

🎬 Video walkthrough

Flashcards

Question

What is the difference between a security group and a Microsoft 365 group?

Click or press Enter to reveal answer

Answer

Security groups control access to resources (apps, policies). M365 groups create collaboration spaces β€” a shared mailbox, SharePoint site, and optionally a Teams team. Both support dynamic membership and licence assignment.

Click to flip back

Question

What are custom security attributes in Entra ID?

Click or press Enter to reveal answer

Answer

Business-specific metadata (like clearance levels or project codes) attached to users and applications. Organised into attribute sets and definitions. Can be used in Conditional Access policies and entitlement management. Require Attribute Assignment Administrator role to manage.

Click to flip back

Question

Why must you set a usage location before assigning a licence?

Click or press Enter to reveal answer

Answer

Microsoft requires a usage location (country) to determine service availability and comply with regional legal requirements. Without it, licence assignment fails.

Click to flip back

Question

What is dynamic group membership?

Click or press Enter to reveal answer

Answer

Members are automatically added or removed based on attribute rules (e.g., department = Finance AND country = NZ). When a user's attributes change, their group memberships update automatically.

Click to flip back

Knowledge Check

Knowledge Check

Jake needs to create 30 new user accounts for a batch of freelancers joining Coastline Creative next month. He wants to do this quickly without clicking through the Entra admin center 30 times. What's the most efficient approach?

Knowledge Check

Priya wants to automatically group all Meridian Health employees in the Surgery department into a security group for targeted Conditional Access policies. Which membership type should she use?

Knowledge Check

Anika's client wants to use custom security attributes to tag users with a 'ProjectCode' and then use that attribute in Conditional Access policies. What must they do first?


Next up: Device Registration & Licensing β€” manage how devices join your tenant and assign the right licences to the right people.