Azure Dynamic Groups

Azure Dynamic Group Membership Rules

Rule Syntax to add group members based on the criteria

  • Account is active
  • Primary Email Address is at domain example.com

(user.accountEnabled -eq true) -and (user.mail -contains "@example.com")

user.assignedPlans -any (assignedPlan.servicePlanId -eq "9aaf7827-d63c-4b61-89c3-182f06f82e5c" -and assignedPlan.capabilityStatus -eq "Enabled")

user.memberof -any (group.objectId -in ['9dba4c67-5cd4-449d-a1c3-51865c374cab'])

(user.userPrincipalName -contains "@example") or (user.proxyAddresses -any (_ -contains "@example")) or (user.companyName -eq "Example Company")

Microsoft Learn | Dynamic Rules


Revision #6
Created 19 August 2024 14:49:15 by orngbnch
Updated 4 September 2024 13:11:00 by B.B.B.Ben E. N. Agents