Assigning and Troubleshooting Licences in Microsoft Entra ID
This lesson explains the Microsoft Entra ID editions, how licences are assigned directly and through groups, and how to resolve assignment errors.
Learning outcomes
After completing this lesson, you will be able to:
- Identify the features that need Microsoft Entra ID P1 or P2.
- Explain group-based licensing and the role of the usage location.
- Identify common causes of licence assignment errors, such as nested groups.
Microsoft Entra ID editions
Microsoft Entra ID Free is included with every subscription and covers user and group management, basic security defaults, single sign-on and B2B collaboration. Microsoft Entra ID P1 adds Conditional Access, dynamic groups, group-based licensing, self-service password reset with on-premises writeback, and hybrid identity features. Microsoft Entra ID P2 adds Microsoft Entra ID Protection (risk-based policies) and Privileged Identity Management (just-in-time role activation). P1 and P2 are also included in suites such as Microsoft 365 E3 and E5. The following table summarizes features that appear in AZ-104 scenarios.
| Feature | Minimum edition |
|---|---|
| Users, groups, B2B guests, self-service password change | Free |
| Self-service password reset for cloud users | P1 (or Microsoft 365 Business Standard or Premium) |
| Dynamic groups, group-based licensing | P1 |
| Conditional Access, SSPR with password writeback | P1 |
| Identity Protection, Privileged Identity Management | P2 |
Which edition is needed?
Assigning licences
Licences are assigned on a user's Licenses page, on a group's Licenses page, from the Licenses area of the Microsoft Entra admin center, or with Microsoft Graph (Set-MgUserLicense). A licence product, such as Microsoft 365 E5, contains several service plans, and individual plans can be turned off during assignment, for example to withhold Exchange Online from contractors.
Every user must have a usage location before a licence can be assigned, because some services are not available in every country; a direct assignment fails, and a group-based assignment uses the tenant's country if the user has none. With group-based licensing, a licence assigned to a security or Microsoft 365 group is applied to every direct member and removed when the member leaves. Users can receive the same licence from several groups and directly; it is consumed only once.
Resolving licence assignment problems
Group-based assignment can fail for individual members, and the group's Licenses page lists users in an error state. The common causes are not enough licences (buy more or remove assignments), conflicting service plans (two products that cannot be assigned together), missing dependent services and proxy address conflicts. After fixing the cause, select Reprocess. Members of nested groups do not receive licences from the parent group, which explains users who appear to be members but have no licence.
The following diagram shows why members of nested groups receive no licence when it is assigned to the parent group.

Licences that fail
Licences that do not arrive
An administrator assigns Microsoft 365 E3 to the group All-Staff. All-Staff contains the groups Sales and Marketing as members, and has no direct user members. No user receives a licence. What is the cause, and what should the administrator do?
Group-based licensing applies only to direct members, so users in the nested Sales and Marketing groups are not licensed. The administrator should assign the licence to Sales and Marketing directly, or replace All-Staff with a dynamic group whose rule includes every employee. Buying more licences or setting usage locations would not help, because no assignment was attempted for those users.
Which user property must be set before a licence can be assigned directly?
Show answer
The usage location, because some services are not available in every country.
Exam Tips
Remember for the exam
- Set a usage location before assigning a licence directly.
- Group-based licensing needs P1 and applies to direct members only.
- Turn off individual service plans to withhold parts of a licence.
- Fix the cause of a group licensing error, then reprocess the group.