@grepler71 As mentioned Apple has a limitation on how many devices can use an Apple ID, this is to stop people purchasing a single app license and using it on hundreds of devices.
You cannot set a devices Apple ID via an MDM, it has to be configured on the device itself.