Entra dynamic group examples
Below are some examples of dynamic group rules that can be used to create groups in Microsoft Entra ID.
Windows
Section titled “Windows”Global
Section titled “Global”All enabled, corporate, cloud-native or hybrid Windows devices managed by either Intune or ConfigMgr co-management
Section titled “All enabled, corporate, cloud-native or hybrid Windows devices managed by either Intune or ConfigMgr co-management”(device.accountEnabled -eq True) and (device.deviceManagementAppId -in ["0000000a-0000-0000-c000-000000000000", "54b943f8-d761-4f8d-951e-9cea1846db5a"]) and (device.deviceTrustType -in ["AzureAD", "ServerAD"]) and (device.deviceOwnership -eq "Company") and (device.deviceOSType -eq "Windows")Autopilot
Section titled “Autopilot”All Autopilot devices
Section titled “All Autopilot devices”(device.devicePhysicalIDs -any (_ -startsWith "[ZTDID]"))All Autopilot registered devices with no group tag
Section titled “All Autopilot registered devices with no group tag”(device.devicePhysicalIDs -any (_ -startsWith "[ZTDID]")) and (device.devicePhysicalIds -all (_ -notStartsWith "[OrderID]:"))Autopilot registered devices with a specific group tag
Section titled “Autopilot registered devices with a specific group tag”(device.devicePhysicalIDs -any (_ -startsWith "[ZTDID]")) and (device.devicePhysicalIds -any (_ -eq "[OrderID]:%GroupTag%"))All Autopilot and Autopilot Device Preparation devices
Section titled “All Autopilot and Autopilot Device Preparation devices”(device.memberof -any (group.objectId -in ['APv1 Dynamic Group GUID','APv2 Assigned Group GUID']))All enabled, corporate, Intune-managed, Platform SSO-joined macOS devices
Section titled “All enabled, corporate, Intune-managed, Platform SSO-joined macOS devices”(device.accountEnabled -eq True) and (device.managementType -eq "MDM") and (device.deviceTrustType -eq "AzureAD") and (device.deviceManufacturer -eq "Apple") and (device.deviceOSType -eq "MacMDM") and (device.deviceOwnership -eq "Company")