Licensing
direct assignment · group-based licensing · usage location · license errors · removing licenses
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Direct and group-based assignment
| Direct to a user | Group-based | |
|---|---|---|
| Roles | At least License Administrator or User Administrator | At least Groups Administrator, License Administrator or User Administrator |
| Where | Active users › user › Licenses and Apps, or Billing › Licenses › product › Assign licenses | Billing › Licenses › Assign licenses › pick the group › pick the subscription |
| Usage location | Must be set before you assign a license | Users without a location inherit the tenant’s location |
| Errors | Show immediately | Recorded on the user object and surface later |
| Supported groups | n/a (assign to users) | Security groups, mail-enabled groups and Microsoft 365 groups |
| Nested groups | n/a | Not supported: only users in the first-level group are licensed |
Group licensing is managed in the Microsoft 365 admin center (Billing › Licenses). The Microsoft 365 admin center article cited below states no separate licence requirement for group-based licensing, so none is stated here.
Limits
| Item | Value |
|---|---|
| Users and/or groups per direct assign dialog | 20 at a time |
| Groups licensed at one time in the admin center | 20 |
| Users reprocessed at one time | 20 |
| Error list page size | 999 users at a time |
| Exchange Online data hold after a license is removed | 30 days, then deleted |
Group license rules
- If a group holds several products and one fails (not enough licenses, conflict or dependency), the other products in that group might not be assigned either.
- Add-on products need their prerequisite service plan. Assign the prerequisite and the add-on in the same group.
- Before deleting a licensed group, remove its licenses. Dependency cases can convert an inherited license to a direct assignment.
- To move a user between licensed groups without losing access: add to the destination group, confirm the new license shows on the user, then remove from the original group.
- To fix errors: product › Errors & issues › correct the problem › select the user or group › Reprocess.
- Find groups with errors in the Microsoft Entra admin center under Billing › Licenses › Overview, or open a group under Groups and select the error notification.
Removing licenses and deleting users
- Deleting a user frees the license immediately.
- Removing a license: Exchange Online data is held 30 days and then deleted. OneDrive files are not deleted unless the user is deleted. The mailbox is no longer searchable by eDiscovery.
- You can’t assign or unassign licenses for a self-service purchase subscription until you take it over.
PowerShell
| Task | PowerShell |
|---|---|
| Assign or remove a license on a group | Set-MgGroupLicense (Microsoft Graph PowerShell SDK) |
| Assign licenses to users | Microsoft Graph PowerShell SDK (the Microsoft page links to it) |
Exam Tips
Tick each tip once you can answer it without looking.
“Least-privileged role to assign licenses to users” → License Administrator (or User Administrator). Trap: Global Administrator works but is far broader.
“Group has subgroups; which users get the group’s license?” → Only first-level members: group-based licensing doesn’t support nested groups. Trap: expecting inheritance through the nested group.
““Not enough licenses” error on a licensed group” → Buy or free up licenses, then Reprocess. Trap: removing and re-adding the users.
“Move a user from Group A to Group B without losing service” → Add to B first, confirm the new license shows on the user, then remove from A. Trap: removing from A first.
“E1 assigned directly and E3 assigned through a group conflict” → Disable one conflicting plan, or remove the redundant direct license. Trap: deleting the group.
“Delete a licensed group” → Remove its licenses first. Dependency cases can convert an inherited license to a direct one. Trap: deleting it while users still depend on it.
“Add-on license assigned to a group fails” → Assign the prerequisite service plan and the add-on in the same group. Trap: a separate group for the add-on.
“What happens to OneDrive files when a license is removed” → They aren’t deleted unless the user is deleted. Trap: assuming the files are lost.
“Direct assignment to a user with no usage location” → Set the usage location first. Trap: assigning without it. Direct assignment needs it set.
“Subscription bought by users through self-service purchase” → Take it over before you can assign or unassign its licenses. Trap: assigning from the Licenses page right away.
“Reprocessing license errors for thousands of users in the admin center” → It handles 20 users at a time: fix the cause, then reprocess the group. Trap: expecting one click to reprocess every user.
“LicenseAssignmentAttributeConcurrencyException when two groups assign the same license” → No action: it is retried automatically. Trap: manual remediation.
“Group license error appears days after assignment, not at once” → Group license errors are recorded on the user object and surface later. Trap: expecting an immediate failure as with direct assignment.
“Where to find groups that have license errors” → Microsoft Entra admin center: Billing › Licenses › Overview, or open the group and select the error notification.
Sources
Checked against Microsoft Learn on November 13, 2026.