Home › Studies › AZ-104 › Identities & Governance › Users & Groups

Users & Groups

user types · roles · create and delete · group types · nesting · dynamic membership · bulk create

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Users

ItemWhat to know
User typesInternal member, internal guest, external member, external guest. Internal users have credentials in the tenant. External guests set their own password through the emailed link.
Create a userLeast-privileged role: User Administrator.
Invite an external guestLeast-privileged role: Guest Inviter.
Assign Microsoft Entra rolesPrivileged Role Administrator.
Account enabledChecked by default at creation. Unchecking it blocks sign-in, and you can change it later. The legacy flow called it “Block sign in”.
Assignments at creationUp to 20 groups or roles and only one administrative unit. External users can’t be assigned to administrative units.
Deleted usersKept in Deleted users for 30 days and can be restored. A deleted user’s licenses are freed for others.
Who can delete whomUser Administrator: non-admin users, Helpdesk Administrators and other User Administrators. Privileged Authentication Administrator: any user, including admins.

Groups

Nesting limits

SupportedNot supported
A security group inside a security groupGroups inside a group synced from on-premises AD; security groups inside Microsoft 365 groups; Microsoft 365 groups inside security or Microsoft 365 groups; licenses on nested groups; distribution groups; groups as members of a role-assignable group

Nested groups don’t gain access assigned to the parent group’s shared resources and apps.

Dynamic membership

GoalRule
Everyone in a departmentuser.department -eq "Sales"
All users (includes B2B guests)user.objectId -ne null
All users, guests excludedAdd -and (user.userType -eq "Member") to the all-users rule
A manager’s direct reportsDirect Reports for "{objectID_of_manager}". Can’t be combined with other rules. The manager is also added.

Bulk create

Where to click, and PowerShell

TaskPath
Create a userEntra ID › Users › New user › Create new user › Basics › Properties › Assignments › Review + create
Create a groupEntra ID › Groups › All groups › New group
Add or remove members or ownersGroup › Members or Owners › + Add or Remove
Bulk createEntra ID › Users › Bulk create › Download template › fill in › upload › Submit
TaskPowerShell
List member users (verify a bulk create)Get-MgUser -Filter "UserType eq 'Member'"
Check a user’s never-expire flagGet-MgUser -UserId <id> -Property UserPrincipalName, PasswordPolicies
Find service plan IDs for a dynamic ruleGet-MgUser -UserId user@contoso.com -Property assignedPlans (scope User.Read.All)

Exam Tips

Tick each tip once you can answer it without looking.

“Create 200 internal users from a spreadsheet” → Bulk create with the CSV template (Name, User name and Initial password are required). Trap: Bulk invite sends guest invitations and is for external users.

“Least-privileged role to create users” → User Administrator. Trap: Global Administrator works but isn’t least privileged; Guest Inviter can only invite guests.

“Convert a Security group into a Microsoft 365 group” → Not possible: delete and recreate. Trap: editing the group type in Properties. The type is fixed after creation.

“Group must automatically hold every user whose department is Sales” → Dynamic user group with user.department -eq "Sales" (needs Entra ID P1). Trap: an assigned group with manual adds.

“Dynamic group that contains both users and devices” → Not possible: a rule is user-based or device-based. Trap: one rule mixing user. and device. conditions.

“Add a user by hand to a dynamic group” → Not allowed: change the user’s attribute or the rule. Trap: Members › Add. You can’t manually add or remove members of a dynamic group.

“Dynamic rule with more than five expressions, or using -contains” → Edit the rule in the text box. Trap: the rule builder, which is limited to five expressions and doesn’t offer -contains.

“Group of one manager’s direct reports” → Dynamic rule Direct Reports for "<manager objectId>". Trap: combining it with another condition: it can’t be combined with other rules.

“Group that can hold Microsoft Entra role assignments” → Create it with “Microsoft Entra roles can be assigned to the group” = Yes; membership type becomes Assigned. Trap: dynamic membership.

“A user was deleted 10 days ago and is needed again” → Restore from Deleted users (30-day window). Trap: creating a new user with the same name: it is a separate account, not the restored one.

“Nest a Security group inside a Microsoft 365 group” → Not supported: only a security group into a security group. Trap: assuming nesting works for any group type.

“Licenses assigned to a group that has a nested child group” → Not applied to the nested group’s members: licenses on nested groups aren’t supported. Trap: expecting license inheritance through nesting.

“Bulk create fails with a whitespace error” → Remove leading spaces before userPrincipalName and passwordProfile; keep the headers exact. Trap: adding extra columns, which are ignored.

“Do bulk-created users receive an invitation email?” → No: bulk create sends no email, so you must give them their credentials. Trap: assuming invitations are sent. Guests are invited with bulk invite.

“Block sign-in for a new user without deleting the account” → Uncheck Account enabled. Trap: deleting the user.

“Device members in a Microsoft 365 group” → Not possible: Microsoft 365 groups can include only users; use a security group for devices. Trap: putting devices in a Microsoft 365 group.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Identities & Governance overviewLicensing →