I am trying to create a dynamic group in Entra ID of users

D E 0 Reputation points
2025-02-11T18:14:47.0366667+00:00

Good afternoon.

I am trying to create a dynamic group in Entra ID of users who have the Microsoft Office Business Premium license.  I have tried in the Groups area of Entra ID using the rule creation interface (assignedPlans.serviceID) and in Powershell using commands in the Microsoft Graph library. Nothing works, I get errors saying properties aren't supported or I get way too many results for a single user and single sku.

 

Has anyone successfully done this? I have the SKU and the SKU ID. 

Microsoft Intune Grouping
Microsoft Intune Grouping
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Grouping: The arrangement or formation of people or things in a group or groups.
68 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,240 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 35,440 Reputation points MVP
    2025-02-11T18:36:39.6466667+00:00

    Follow https://learn.microsoft.com/en-us/answers/questions/1532030/entra-id-dynamic-security-group-based-on-account-a


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Xenia-MSFT 4,065 Reputation points Microsoft Vendor
    2025-02-12T01:51:59.3066667+00:00

    @D E Thanks for posting in our Q&A.

    Based on my research, the rule may be:

    (user.assignedPlans -any (assignedPlan.servicePlanId -eq "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -and assignedPlan.capabilityStatus -eq "Enabled"))
    
    

    For more details, please refer to the following link:

    https://cloudyhappypeople.com/2019/06/26/create-a-dynamic-rule-based-on-user-license-plan/

    Note: Non-Microsoft link, just for the reference.

    In addition, we can skip the PowerShell section in the above link to find the ServiceplanID info by going to this Microsoft Page. https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-service-plan-reference

    Hope it will help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.