dynamic query rule maximum lenght

Massimiliano Bouvet (RED Account) 0 Reputation points
2024-03-28T14:07:11.0133333+00:00

I wonder if there is a maximum lenght to create a dynamic group rule in Azure/intune

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.
37 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. glebgreenspan 1,125 Reputation points
    2024-03-28T16:54:10.19+00:00

    Hello

    As of the latest information available, the maximum limit for the number of rules in a dynamic group in Azure AD is 15 rules. This means that you can create up to 15 rules to dynamically add members to a group based on specific criteria.

    0 comments No comments

  2. Crystal-MSFT 42,306 Reputation points Microsoft Vendor
    2024-03-29T02:04:25.9866667+00:00

    @Massimiliano Bouvet (RED Account), Thanks for posting in Q&A. Based on my researching, the Simple Rule builder supports up to five (5) expressions. To add more than five expressions to the rule, the text box must be used.

    https://learn.microsoft.com/en-us/troubleshoot/azure/entra-id/dir-dmns-obj/troubleshoot-dynamic-groups#troubleshoot-dynamic-group-rule-creation-issues

    And the total length of the body of your membership rule can't exceed 3072 characters.

    https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership#rule-syntax-for-a-single-expression

    Hope the above information can 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.