Automating the process of adding iOS devices to DEP (cfgutil)

New Contributor II

For all that are familiar, I am wondering if anyone has been able to automate the addition of devices to DEP using 'cfgutil'? If so would anyone be able to share their solution?

On the 'cfgutil' manual / documentation, I can see there is a an sub-option under the 'prepare' command for --dep, to which would require an 'install-profile' command to ensure the device has automated Internet Connection, this isn't a problem.

I will go ahead and try this command and share my results, the problem I am for-seeing is how it automates knowing the AppleID of the DEP account to use...!? Mystery awaits...