logic for adding new domains/d_a/devices/assign user to devices