You can use the following keys within the returnToService option:
- enabled —When this key is set to true, the device tries to re-enroll itself automatically after erasure.
- mdmProfileData —
The
mdmProfileDatakey reinstalls the provided MDM profile. It is required for all unsupervised and supervised devices that were not enrolled via Automated Device Enrollment. The device uses the MDM profile directly and does not fetch it from the server.This key is only necessary for devices enrolled via Automated Device Enrollment if the device's cloud configuration profile contains the
configuration-web-urlkey. When the MDM profile contains themdmProfileDatakey, the cloud configuration is still downloaded from Apple's servers. This means the supervision identity, MDM removability, and other settings from the cloud configuration still apply. In addition, the device does not use the URL specified in the cloud configuration to fetch the MDM profile. - wifiProfileData —The
wifiProfileDatakey installs the Wi-Fi profile. This key is required when the device does not have Ethernet access.