You can assign devices to locations during Automated Device Enrollment by ensuring the authenticated user is made the device owner. Once enrollment is complete, the device will be assigned to the location that the user is associated with. For more information, see Automated Device Enrollment.