SOLVED

Dynamic group for devices that don't have a group tag

Brass Contributor

We have group tags in the enrolled devices of test, pilot, and prod

I'd like to create a dynamic group for devices that don't have a group tag. I've tried using Null or $null for the orderID. but I can't seem to get the right format.

 

Is it possible?

 

Thanks,jb

3 Replies
best response confirmed by Jason_B1025 (Brass Contributor)
Solution

You can use this to create a Dynamic group for Autopilot devices without a OrderID/GroupTag

(device.devicePhysicalIDs -any _ -contains "[ZTDId]") and (device.devicePhysicalIds -all _ -notContains "[OrderID]:")

Thank you, I'll try that.
I just tested it in my CDX environment, should work... If it does, mark my answer as solution :)
1 best response

Accepted Solutions
best response confirmed by Jason_B1025 (Brass Contributor)
Solution

You can use this to create a Dynamic group for Autopilot devices without a OrderID/GroupTag

(device.devicePhysicalIDs -any _ -contains "[ZTDId]") and (device.devicePhysicalIds -all _ -notContains "[OrderID]:")

View solution in original post