changed user endpoitn to use device_inventory collection