Share via

dynamic query rule maximum lenght

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 Security | Intune | Grouping
0 comments No comments

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 54,311 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?


  2. glebgreenspan 2,260 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.

    Was this answer helpful?

    0 comments No comments

Your answer

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