Made sure Devices, DeviceGroups and UserGroups interaction is ok.