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
| Item | What to know |
|---|---|
| User types | Internal 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 user | Least-privileged role: User Administrator. |
| Invite an external guest | Least-privileged role: Guest Inviter. |
| Assign Microsoft Entra roles | Privileged Role Administrator. |
| Account enabled | Checked 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 creation | Up to 20 groups or roles and only one administrative unit. External users can’t be assigned to administrative units. |
| Deleted users | Kept in Deleted users for 30 days and can be restored. A deleted user’s licenses are freed for others. |
| Who can delete whom | User Administrator: non-admin users, Helpdesk Administrators and other User Administrators. Privileged Authentication Administrator: any user, including admins. |
- Users whose source of authority is on-premises AD must be edited in AD. The change appears after the next sync cycle.
- An internal guest has a credential in your tenant but guest privileges. An external guest authenticates with an external method.
- The portal path is Entra ID › Users or Groups.
Groups
- Create and manage groups needs Groups Administrator or User Administrator.
- Group types: Security and Microsoft 365. The group email address option exists only for Microsoft 365 groups. Security groups can include users or devices; Microsoft 365 groups can include only users.
- Group type can’t be changed after creation: delete and recreate. The object ID can’t be changed either. A group name can’t start with a space. Membership type can change, unless the group is role-assignable.
- Role-assignable group (“Microsoft Entra roles can be assigned to the group”): needs Entra ID P1 or P2 and at least Privileged Role Administrator. It forces Membership type to Assigned, and that can’t be changed afterwards.
- A group can be added to only one other group at a time. To nest, open the child group › Group memberships › + Add memberships › choose the parent.
Nesting limits
| Supported | Not supported |
|---|---|
| A security group inside a security group | Groups 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
- Rules are user-based or device-based. One rule can’t contain both. You can’t manually add or remove members.
- Needs Microsoft Entra ID P1 (or Intune for Education) licenses covering every unique user in any dynamic group. Users needn’t be assigned a license. Devices need none.
- A tenant can have at most 15,000 dynamic membership groups. The rule body is limited to 3,072 characters.
- Device rules can reference only device attributes, not the owner’s user attributes.
- The rule builder is for user-based groups and supports up to five expressions. Device rules, more than five expressions,
-contains/-notContains, direct reports and operator precedence need the text box. - Property names are case-sensitive. Regex and string operations are not.
extensionAttribute1toextensionAttribute15are usable as string properties. Multi-value extension properties aren’t supported.
| Goal | Rule |
|---|---|
| Everyone in a department | user.department -eq "Sales" |
| All users (includes B2B guests) | user.objectId -ne null |
| All users, guests excluded | Add -and (user.userType -eq "Member") to the all-users rule |
| A manager’s direct reports | Direct Reports for "{objectID_of_manager}". Can’t be combined with other rules. The manager is also added. |
Bulk create
- Download the CSV template. Required columns: Name [displayName], User name [userPrincipalName], Initial password [passwordProfile]. One user per row. Extra columns are ignored.
- It creates internal member accounts with the CSV passwords and sends no invitation email. Guests are invited with the separate bulk invite feature.
- Keep the headers exactly as they are, remove leading spaces before userPrincipalName and passwordProfile, and use a
.csvextension. - Bulk operations that don’t finish within the hour can fail. Split them into smaller batches.
- Track progress on Bulk operation results. The results file gives the reason for each error.
Where to click, and PowerShell
| Task | Path |
|---|---|
| Create a user | Entra ID › Users › New user › Create new user › Basics › Properties › Assignments › Review + create |
| Create a group | Entra ID › Groups › All groups › New group |
| Add or remove members or owners | Group › Members or Owners › + Add or Remove |
| Bulk create | Entra ID › Users › Bulk create › Download template › fill in › upload › Submit |
| Task | PowerShell |
|---|---|
| List member users (verify a bulk create) | Get-MgUser -Filter "UserType eq 'Member'" |
| Check a user’s never-expire flag | Get-MgUser -UserId <id> -Property UserPrincipalName, PasswordPolicies |
| Find service plan IDs for a dynamic rule | Get-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
- How to create, invite, and delete users
- How to manage groups
- Manage rules for dynamic membership groups
- Bulk create users
- SSPR policies (password policy cmdlets)
Checked against Microsoft Learn on November 13, 2026.