Users, Groups, Devices & Licenses
Users and restore · groups and dynamic membership · custom security attributes · bulk operations · device join and registration · licensing
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Users
| User type | Meaning |
|---|---|
| Internal member | Account in your tenant, member privileges (typically employees) |
| Internal guest | Account in your tenant with guest-level privileges |
| External member | Authenticates with an external account, member access |
| External guest | True guest: authenticates externally, guest-level privileges |
- Roles to create: User Administrator creates users; Guest Inviter invites external guests; Privileged Role Administrator assigns Entra roles.
- On the Assignments tab you can add a new user to up to 20 groups or roles, but only one administrative unit.
- Account enabled is checked by default; unchecking it blocks sign-in (the old Block sign in).
- A deleted user stays suspended for 30 days and can be restored with its properties from Deleted users (at least User Administrator). After 30 days permanent deletion starts and can't be stopped. A permanently deleted user can't be restored by anyone, including Microsoft support.
- Restored users get their licences back even if none are available. A synced user that still exists on-premises can be restored by the sync engine.
Groups and dynamic membership
| Item | Security group | Microsoft 365 group |
|---|---|---|
| Purpose | Manage access to shared resources | Collaboration |
| Members | Users, devices, service principals; can be nested | Users only; people outside the organization can be members |
| Email address | - | Group email address available only here |
- Create or manage groups: at least Groups Administrator or User Administrator. A group name can't start with a space.
- Membership types: Assigned, Dynamic User, Dynamic Device. A dynamic group is for users or devices, not both; a rule can't mix them.
- Dynamic groups: members can't be added or removed manually; all rules are re-evaluated when an attribute changes; a tenant can have a maximum of 15,000 dynamic membership groups.
- Rule body maximum 3,072 characters. The rule builder supports up to five expressions and works only for user-based groups; device rules and more complex rules use the text box.
- You can't create a device group based on the user attributes of the device owner.
- Licence: Microsoft Entra ID P1 (or Intune for Education) for each unique user who is a member of any dynamic group; no licence for device members. Licences don't have to be assigned, but you must own enough.
- Groups synced from on-premises Active Directory can only be managed on-premises. A non-admin user can create at most 250 groups.
- Preview: the
memberOfrule operator is a preview feature; see Retirements for its end date.
Self-service, naming and expiration
- Self-service: users create and manage their own security or Microsoft 365 groups; only the group's owners can update membership.
- Naming policy (Microsoft 365 groups): prefix/suffix and blocked words (up to 5,000; exact match, no substring search). Exempt: Global Administrator and User Administrator. Not applied immediately to existing groups. Needs a P1 (or Basic EDU) licence for members.
- Expiration policy (Microsoft 365 groups only, one per tenant): lifetime 30 days or more; active groups auto-renew; a deleted group can be restored within 30 days by owners or an administrator, and that period isn't customizable.
Custom security attributes
- Business-specific key-value pairs you define and assign to Microsoft Entra users and enterprise applications (service principals).
- Every attribute belongs to an attribute set; sets can't be renamed or deleted, and a definition can't be deleted, only deactivated.
- Data types: Boolean, integer, string; single or multiple values; free-form or predefined values.
- Global Administrator and other admin roles can't read, define or assign them by default. Four built-in roles: Attribute Definition Administrator/Reader, Attribute Assignment Administrator/Reader. Assign at tenant or attribute set scope.
- Versus extensions: custom security attributes have restricted read/write access through RBAC and suit sensitive data and authorization; anyone who can read the object can read extension data.
| Limit | Value |
|---|---|
| Attribute definitions per tenant (active) | 500 |
| Predefined values per attribute definition | 100 |
| Attribute values assigned per object | 50 |
| Attribute set or attribute name | 32 characters, no spaces or special characters |
Bulk operations and PowerShell
- Bulk create users (User Administrator): download the CSV template, keep column headers exactly, fill Name, User name and Initial password (the only required columns); extra columns are ignored; unintended whitespace causes failures.
- Bulk create makes internal member accounts and sends no invitation emails. Use bulk invite for B2B guests.
- Bulk delete uses the user principal name or object ID. Bulk add group members needs the Member object ID or user principal name column, one per row, at least two entries.
- Any user can download the user list. Bulk operations can fail on large tenants or if they don't complete within the hour; use filters or PowerShell (
Get-MgUser -All,Get-MgGroup -All). - Microsoft Entra PowerShell works with Windows PowerShell 5.1 and PowerShell 7+.
Device join and registration
| Registered | Joined | Hybrid joined | |
|---|---|---|---|
| Org account to sign in to device | No | Yes | Yes |
| Typical use | BYOD and mobile | Organization-owned, cloud or hybrid | Existing on-premises AD |
| Needs DC line of sight | - | - | Periodically |
- Registration isn't the same as enrollment (MDM such as Intune). Device identities are a prerequisite for device-based Conditional Access.
- Enable or disable a device: Intune Administrator or Cloud Device Administrator. Disabling revokes the PRT and refresh tokens. Delete: Cloud Device Administrator, Intune Administrator or Windows 365 Administrator; deletion removes BitLocker keys and isn't recoverable.
- Show Recovery Key creates an audit entry in the KeyManagement category. Device counts on the overview page aren't real time.
- Entra joined local admins: the Joined Device Local Administrator role and Global Administrator roles plus the joining user are added at join. The role applies to all joined devices and can't be scoped; the role needs P1 or P2; takes effect after up to 4 hours (new PRT) and a sign out. Windows evaluates up to 20 groups for admin rights.
Licences
| Topic | Rule |
|---|---|
| Who assigns | License Administrator or User Administrator (users); Groups, License or User Administrator (groups) |
| Usage location | Must be set before a licence is assigned; users with none inherit the tenant location for group-based licensing |
| Nested groups | Not supported: only first-level members are licensed |
| Limits | Up to 20 groups at a time (admin center); up to 20 users and/or groups per Assign licenses panel |
| Errors | Surface later on the user, not immediately. Fix, then Reprocess |
| Move between groups | Add to new group, confirm the licence, then remove from the old one |
| Error | Fix |
|---|---|
| Not enough licenses | Buy more, remove unused direct assignments, or free licences |
| Conflicting service plans | Disable one conflicting plan, remove the redundant direct licence, or adjust the group licence |
| Usage location isn't allowed | Set the correct usage location on the user |
| Add-on without prerequisite | Assign the prerequisite and the add-on in the same group |
| Several products in one group | One failing product can stop the others; find the failing one |
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| List member users | - | Get-MgUser -Filter "UserType eq 'Member'" |
| Assign licences to a group | - | Set-MgGroupLicense -GroupId $groupId -BodyParameter $params |
| List groups that have licences | - | Get-MgGroup -All -Property Id, MailNickname, DisplayName, GroupTypes, Description, AssignedLicenses | Where-Object {$_.AssignedLicenses -ne $null } |
| Sign in to assign custom security attributes | - | Connect-MgGraph -Scopes "CustomSecAttributeAssignment.ReadWrite.All" |
| List attribute sets | - | Get-MgDirectoryAttributeSet |
Exam Tips
Tick each tip once you can answer it without looking.
“Bulk create 200 users from a CSV” → Internal members; no invitation emails; only Name, User name, Initial password required.. Trap: Bulk invite is the process for B2B guests with emails.
“Dynamic group with 1,000 users and 300 devices: P1 count” → 1,000 P1 licences (unique users).. Trap: Devices need no licence; you needn't assign them, but you must own them.
“Licence on a group that contains a nested group” → Only first-level users are licensed.. Trap: Nested group members are skipped.
“Global Administrator can't assign custom security attributes” → Needs Attribute Assignment Administrator.. Trap: Administrator roles have no access to them by default.
“Dynamic group rules” → Users or devices, not both; no manual add/remove; rule 3,072 characters.. Trap: A device group can't use the owner's user attributes.
“Move user between licensed groups without a gap” → Add to new, confirm licence, remove from old.. Trap: Removing first leaves the user unlicensed until processing ends.
“Group licence error: Usage location isn't allowed” → Set the user's usage location.. Trap: Buying licences fixes Not enough licenses, not this.
“Group naming policy exemptions” → Global Administrator and User Administrator.. Trap: The policy is for Microsoft 365 groups.
“Expiration policy deleted a group 20 days ago” → Restore it (owner or administrator); window is 30 days and fixed.. Trap: You can't extend the restore period.
“Unneeded custom security attribute” → Deactivate it.. Trap: Definitions and attribute sets can't be deleted; sets can't be renamed.
“BYOD device without a work account sign-in” → Microsoft Entra registered.. Trap: Join and hybrid join need an organizational account to sign in.
“Maximum number of devices setting” → Default 50, up to 100 or Unlimited; joined and registered only.. Trap: It doesn't apply to hybrid joined devices.
“Helpdesk as local admins on all joined devices” → Entra Joined Device Local Administrator role via Device settings (P1/P2).. Trap: It can't be scoped to some devices; not for hybrid joined.
“Restore a deleted user” → Deleted users, within 30 days, at least User Administrator.. Trap: Permanently deleted users can't be restored by anyone.
“Disable a device in Entra” → Intune Administrator or Cloud Device Administrator; revokes the PRT.. Trap: Deleting removes BitLocker keys and can't be undone.
“Add a new user to an administrative unit at creation” → One AU, plus up to 20 groups or roles.. Trap: You can't choose several AUs on the New user page.
Sources
- How to create, invite, and delete users in Microsoft Entra ID - Microsoft Entra
- Restore or permanently remove recently deleted user - Microsoft Entra
- Learn About Groups, Group Membership, and Access - Microsoft Entra
- How to manage groups - Microsoft Entra
- Manage rules for dynamic membership groups in Microsoft Entra ID - Microsoft Entra ID
- Configure dynamic membership groups with the memberOf operator in the Entra Admin Center (preview) - Microsoft Entra ID
- Service limits and restrictions - Microsoft Entra ID
- Bulk create users in the Azure portal - Microsoft Entra ID
- Bulk delete users in Microsoft Entra ID - Microsoft Entra ID
- Download a list of users in the Azure portal (Preview) - Microsoft Entra ID
- Bulk add group members by uploading a CSV file - Microsoft Entra ID
- Bulk operations service limitations - Microsoft Entra
- What is Microsoft Entra PowerShell? - Microsoft Entra PowerShell
- What are custom security attributes in Microsoft Entra ID? - Microsoft Entra
- Add or deactivate custom security attribute definitions in Microsoft Entra ID - Microsoft Entra
- Manage access to custom security attributes in Microsoft Entra ID - Microsoft Entra
- Assign, update, list, or remove custom security attributes for a user - Microsoft Entra ID
- What is device identity in Microsoft Entra ID? - Microsoft Entra ID
- What are Microsoft Entra registered devices? - Microsoft Entra ID
- What is a Microsoft Entra joined device? - Microsoft Entra ID
- What is a Microsoft Entra hybrid joined device? - Microsoft Entra ID
- Manage devices in Microsoft Entra ID using the Microsoft Entra admin center - Microsoft Entra ID
- How to manage local administrators on Microsoft Entra joined devices - Microsoft Entra ID
- Assign or unassign licenses for users in the Microsoft 365 admin center - Microsoft 365 admin
- Assign or unassign licenses to a group in the Microsoft 365 admin center - Microsoft 365 admin
- PowerShell examples for group-based licensing - Microsoft Entra ID
- Set up self-service group management - Microsoft Entra ID
- Enforce a group naming policy in Microsoft Entra ID - Microsoft Entra ID
- Set expiration for Microsoft 365 groups - Microsoft Entra ID
Checked against Microsoft Learn on November 13, 2026.