Create simpler, more efficient dynamic membership rules
Microsoft's edit ·
Microsoft's commit message in MicrosoftDocs/entra-docs · commit 127d641 · +2 −2 lines · also on GitHub
⋯ 6 unchanged lines
77
ms.service: entra-id
88
ms.subservice: users
99
ms.topic: conceptual
10
−ms.date: 08/25/2024
10
+ms.date: 01/15/2025
1111
ms.author: barclayn
1212
ms.reviewer: jordandahl
1313
ms.custom: it-pro
⋯ 41 unchanged lines
5555
5656
- `user.department -eq "Accounts" -and user.city -in ["Lagos", "Ibadan", "Kaduna", "Abuja", "Port Harcourt"]`
5757
58
−Conversely, identify similar sub criteria with the same property not equal to various values, that are linked with `-and` operators. Then use the `-notin` operator to group them into a single criterion to make the rule easier to understand and evaluate. For example, instead of using a rule like this:
58
+Conversely, identify similar sub criteria with the same property not equal to various values that are linked with `-and` operators. Then use the `-notin` operator to group them into a single criterion to make the rule easier to understand and evaluate. For example, instead of using a rule like this:
5959
6060
- `(user.city -ne "Lagos") -and (user.city -ne "Ibadan") -and (user.city -ne "Kaduna") -and (user.city -ne "Abuja") -and (user.city -ne "Port Harcourt")`
6161
⋯ 18 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.