azureblog.co.uk
← cd ~/tools
// tools/dynamic-groups

Dynamic group rule tester

Paste a dynamic membership rule and some users or devices. The tool checks the syntax, explains the rule in plain English, and shows who would be in the group and why, before you save anything in Entra.

Runs entirely in your browser. Nothing you paste is sent anywhere.

Get some test users

powershell5 lines
Connect-MgGraph -Scopes User.Read.All
Get-MgUser -Top 200 -Property displayName,userPrincipalName,department,jobTitle,country,usageLocation,userType,accountEnabled,companyName,employeeId,city,proxyAddresses,onPremisesExtensionAttributes |
  Select-Object displayName,userPrincipalName,department,jobTitle,country,usageLocation,userType,accountEnabled,companyName,employeeId,city,proxyAddresses,
    @{n='extensionAttribute1';e={$_.OnPremisesExtensionAttributes.ExtensionAttribute1}} |
  ConvertTo-Json -Depth 4 | Out-File users.json

Good to know