Create simpler, more efficient dynamic membership rules
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/entra-docs · commit 46fb843 · +1 −1 lines · also on GitHub
⋯ 23 unchanged lines
2424
2525
## Minimize use of MATCH
2626
27
−Minimize the usage of the `match` operator in rules as much as possible. Instead, explore if it's possible to use the `startswith`, or `-eq` operators. Considering using other properties that allow you to write rules to select the users you want to be in the group without using the `-match` operator. For example, if you want a rule for the group for all users whose city is Lagos, then instead of using rules like:
27
+Minimize the usage of the `match` operator in rules as much as possible. Instead, explore if it's possible to use the `startswith` or `-eq` operators. Considering using other properties that allow you to write rules to select the users you want to be in the group without using the `-match` operator. For example, if you want a rule for the group for all users whose city is Lagos, then instead of using rules like:
2828
2929
- `user.city -match "ago"`
3030
- `user.city -match ".*?ago.*"`
⋯ 48 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.