Create simpler, more efficient dynamic membership rules
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/entra-docs · commit e7c1449 · +4 −0 lines · also on GitHub
⋯ 36 unchanged lines
3737
3838
- `user.city -eq "Lagos"`
3939
40
+## Minimize use of CONTAINS
41
+
42
+Similiar to the use of MATCH. Minimize the usage of the `contains` operator in rules as much as possible. Instead, explore if it's possible to use the `startswith` or `-eq` operators. Utilizing CONTAINS can decrease processing times within Intune based on the tenant. Extension attributes are another avenue that can be used to help with processing time.
43
+
4044
## Use fewer OR operators
4145
4246
In your rule, identify when it uses various values for the same property linked together with `-or` operators. Instead, use the `-in` operator to group them into a single criterion to make the rule easier to evaluate. For example, instead of having a rule like this:
⋯ 36 unchanged lines
Microsoft's Markdown source from MicrosoftDocs/entra-docs, © Microsoft Corporation, under MIT. Changed lines with up to 3 unchanged lines around each; ChangeIntel kept this copy today 06:37 UTC. The commit date is when the source changed, which can be hours or days before Learn published it.