Skip to content
Browse all topics
Microsoft Entra (Identity)

Entra ID groups and group-based licensing

By Emil Björk · Microsoft ecosystem consultant, Gothenburg

Group types in Entra ID, dynamic groups, and using groups to assign licences automatically.

3 min read

Share as imagePNG

Groups in Entra ID are the unit of access management and the basis for group-based licensing — a way to assign Microsoft 365 licences automatically based on group membership. Knowing the group types and their behaviours saves a lot of one-off user management.

Group types

Entra ID has two basic types:

  • Security groups — used to grant access to apps and resources. Can be mail-enabled to also act as a distribution list.
  • Microsoft 365 Groups — collaborative groups with a shared mailbox, SharePoint site, and (optional) Teams team. Used both for collaboration and as access principals.

Each can have assigned or dynamic membership:

  • Assigned — members are added manually.
  • Dynamic user — membership is a query against user attributes (department, country, jobTitle, etc.).
  • Dynamic device — membership is a query against device attributes (OS, ownership, compliance).

Dynamic groups update automatically as user attributes change in Entra ID.

Group-based licensing

Licences in Microsoft 365 can be assigned to groups. Any member of the group inherits the licence; remove them from the group and the licence is reclaimed.

This is invaluable for:

  • Department-driven licensing — assign E3 to "All Employees" via a dynamic group on department.
  • Onboarding/offboarding — HR sets the department attribute, the user gets the right licence automatically.
  • Add-onsPower BI Pro to "Analysts," Copilot to "Pilot Users," via specific groups.

Limitations:

  • Group-based licensing requires Entra ID P1 for at least one user (which most Microsoft 365 plans include).
  • Conflict resolution: if a user lands in two groups with conflicting service plans, the explicit assignment wins where possible.
  • Track the provisioning status in the Entra admin center — sometimes a licence shortage or conflicting service-plan blocks assignment for some users.

Best practices

  • Standardise naming: LIC-M365-E3, LIC-Copilot, SEC-DataAccess-Finance. Predictable names help the next admin.
  • Avoid nested groups for licensing — Entra ID doesn't follow nested membership for licence assignment in many cases.
  • Use dynamic groups for stable, attribute-driven access; use assigned groups for ad-hoc access.
  • Lifecycle policies for Microsoft 365 Groups — expiration after N days inactive, with owner renewal.
  • Access reviews for sensitive groups — quarterly attestation by owners.

Groups and Conditional Access

CA policies target users by group. Combined with dynamic groups, you can express "MFA required for everyone in Finance" or "Block access from unmanaged devices for the All Admins group" without manual user-by-user assignment.

Treat groups as the primary admin abstraction. Everything else — access, licences, Conditional Access, app assignment — should hang off them.

Why nested groups trip up licensing specifically

Group-based licensing's exception to "nested groups don't work" is worth calling out precisely because it's inconsistent with how groups behave everywhere else in Entra ID — Conditional Access and app role assignment generally do respect nested membership, which leads admins to reasonably assume licensing works the same way, then discover during rollout that a licence assigned to a parent group silently didn't reach members who only belonged via a nested child group. The safe pattern is assigning licences directly to the group a user is a direct member of, or flattening the structure for licensing purposes specifically, even if the same groups are nested for other, non-licensing purposes elsewhere in the tenant.

Frequently asked questions

What happens if a user is removed from every licensing group at once? Their licence is reclaimed and any data tied to licensed services becomes subject to the normal grace-period and retention rules for that service (mailbox, OneDrive, and so on) rather than being deleted immediately — but access to licensed features stops right away, which is why offboarding automation typically disables the account and removes group memberships together rather than relying on licence removal alone to cut off access.

Can group-based licensing assign different licences to the same group of people based on other criteria? Not from a single group — but layering multiple groups (a base licence group everyone's in, plus narrower add-on groups for Copilot, Power BI Pro, or Teams Premium) achieves the same outcome, since a user can belong to and receive licences from several groups simultaneously, with Entra ID resolving any genuine service-plan conflicts between them.

Frequently asked questions

What is the difference between security groups and Microsoft 365 groups?
A security group is a membership list used for permissions, licensing, and policy targeting. A Microsoft 365 group is a security group plus collaboration resources — a mailbox, calendar, SharePoint site, Planner, and optionally a Team. Use security groups for access and licensing; Microsoft 365 groups when people need shared workspaces.
Does group-based licensing need Entra ID P1?
Yes, for the users licensed through a group. P1 is included in Business Premium, E3, E5, and F-plans, so most tenants qualify.
What causes licensing errors in group-based licensing?
Not enough available licences, conflicting service plans between two assigned licences, a usage location that does not allow a service, or a disabled plan that another plan depends on. Errors show on the group and the user; fix the cause and reprocess.

Further reading

Microsoft Docs & product blog

Was this useful?

Spot something wrong or want a topic covered? Send it through the contact form.