logo
search
License & Subscription Issues

How to Create Dynamic Groups Based on Microsoft 365 License Type

Steven ParkerSteven Parker Oct 20, 2026 870 views

Question details

The user needs to create Microsoft Entra dynamic groups based on specific Microsoft 365 license types while excluding blocked or unlicensed users.

How to Create Dynamic Groups Based on Microsoft 365 License Type
Product
Microsoft 365 / Microsoft Entra ID
Device & OS
not provided
Scenario
Creating dynamic user groups for managing access based on active subscription licenses.
Observed behavior
Microsoft Entra dynamic groups do not support using assigned Microsoft 365 licenses directly as membership-rule conditions.
Before you start

Ensure you have the necessary administrator permissions in Microsoft Entra ID (formerly Azure AD) to create and edit dynamic group membership rules.

Solution 1Recommended

Use the assignedPlans Attribute for Dynamic Groups

Since direct license assignment cannot be used as a condition, you can use the assignedPlans attribute to query service plans associated with the license.

Dynamic groups in Microsoft Entra ID do not currently support membership rules based directly on the top-level assigned licenses (such as Microsoft 365 E3 or E5). Instead, they support rules based on the assignedPlans attribute, which targets the underlying service plans associated with those licenses.

1
Identify the Service Plan ID

Determine the GUID of the specific service plan included in your Microsoft 365 license that you want to target.

2
Open Microsoft Entra Admin Center

Log in to the Microsoft Entra admin center with at least a Groups Administrator role.

3
Create or Edit a Group

Navigate to Groups > All groups, select an existing dynamic group or create a new one, and set the Membership type to Dynamic User.

4
Configure the Dynamic Query

Open the Dynamic membership rules editor and use the assignedPlans property to check if it contains the specific service plan ID and ensure the capabilityStatus is 'Enabled'.

5
Filter Out Blocked Users

Add an 'and' condition to exclude disabled accounts by setting 'accountEnabled -eq true' in your rule syntax.

Use the assignedPlans Attribute for Dynamic Groups
Syntax Requirement: Review the official Microsoft documentation for the exact dynamic membership rule syntax and supported attributes to ensure your query evaluates correctly.
Free Microsoft Office alternative

Looking for a Simpler Office Solution? Try WPS Office

While managing enterprise licenses and dynamic groups in Microsoft 365 can be complex, equipping your team with a reliable office suite doesn't have to be. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office, perfect for users who need core productivity tools without the overhead of complex license management.

  1. 1. Visit the Official Website: Go to the official WPS Office website to download the latest version for your operating system.
  2. 2. Install the Application: Run the installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Start Working Immediately: Open WPS Office and start creating or editing your documents instantly.
Fully compatible with Microsoft Word, Excel, and PowerPoint formatsLightweight application that runs smoothly on most devicesNo complex enterprise license management required for basic productivityFamiliar user interface for a seamless migration experience
microsoft office alternative - wps office

Frequently Asked Questions

Can I use Microsoft 365 license names directly in dynamic group rules?

No, Microsoft Entra dynamic groups do not support membership rules based directly on assigned license names. You must use the assignedPlans attribute to target the specific underlying service plans.

What is the assignedPlans attribute?

The assignedPlans attribute is a property in Microsoft Entra ID that lists the underlying service plans associated with a user's assigned licenses. It is used in dynamic queries to filter users based on their active services.

How do I exclude blocked or disabled accounts from my dynamic group?

You can exclude blocked accounts by adding an additional condition to your dynamic membership rule, such as 'accountEnabled -eq true', which ensures only active users are added to the group.