Using MDS to sign into iCloud

Is it possible to configure a workflow to automatically sign into an icloud account?

I’m working on a large deployment of 2015-2017 Macs using MDS. We have several iCloud account that need to get signed into. It would be helpful if we could automate this using MDS. So far I’ve not even found a way to do it in the terminal. I typically work on PCs so my knowledge of icloud is somewhat limited.


Can you give me a bit more information about why icloud needs to be set up during provisioning? This is usually done as a per-user settings and Apple has other ways to do things (like VPP) for app store purchases for organizations.