Home › Studies › AZ-104 › Identities & Governance › Licensing

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 userGroup-based
RolesAt least License Administrator or User AdministratorAt least Groups Administrator, License Administrator or User Administrator
WhereActive users › user › Licenses and Apps, or Billing › Licenses › product › Assign licensesBilling › Licenses › Assign licenses › pick the group › pick the subscription
Usage locationMust be set before you assign a licenseUsers without a location inherit the tenant’s location
ErrorsShow immediatelyRecorded on the user object and surface later
Supported groupsn/a (assign to users)Security groups, mail-enabled groups and Microsoft 365 groups
Nested groupsn/aNot 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

ItemValue
Users and/or groups per direct assign dialog20 at a time
Groups licensed at one time in the admin center20
Users reprocessed at one time20
Error list page size999 users at a time
Exchange Online data hold after a license is removed30 days, then deleted

Group license rules

Removing licenses and deleting users

PowerShell

TaskPowerShell
Assign or remove a license on a groupSet-MgGroupLicense (Microsoft Graph PowerShell SDK)
Assign licenses to usersMicrosoft 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.

← Users & GroupsExternal Users →