Device Groups
Each device has a field named groupNames that contains the names of the device groups that contain this device. With
this, it is easy to write a query that only considers the devices in a specific group as well as the union or
intersection of two groups. See the Examples tab for these queries.