Direct Inward Dialing: +1 408 916 9890
A dynamic group allows you to create rules to manage the group membership. Users and groups are added or removed if they meet the conditions defined by the rules. This page shows you how you can create rules that are simple and as efficient as possible.
1. Minimize use of the MATCH operator
Minimize the use of the match operator and try using startswith and -eq( helps you check whether two values are equal) operators instead.
Avoid using rules like
It's better to use rules like
Or, best of all,
Minimize the use of the contains operator as it can increase the processing time, especially for tenants with dynamic groups. Try using the startswith or -eq operators instead.
Instead of the -or operator, use the -in operator (helps you check whether a value exists in a set) to group the various values into a single criterion to make the rule easier to evaluate. For example, instead of having a rule like this.
(user.department -eq "Accounts" -and user.city -eq "Lagos") -or (user.department -eq "Accounts" -and user.city -eq "Ibadan") -or (user.department -eq "Accounts" -and user.city -eq "Kaduna") -or (user.department -eq "Accounts" -and user.city -eq "Abuja") -or (user.department -eq "Accounts" -and user.city -eq "Port Harcourt")
It's better to have a rule like this.
Avoid using redundant criteria in your rule. For example, instead of using a rule like this
It's better to use a rule like this
M365 Manager Plus is an extensive Microsoft 365 tool used for reporting, managing, monitoring, auditing, and creating alerts for critical incidents. With M365 Manager Plus, you can:
One-stop solution for your Microsoft 365 management needs.