@beks88 I managed to get it working! The JSON data only needs the {"enrollment_url"...} section, see below. I can now factory reset a device and it will auto enroll in SM and get profiles if they're assigned. The only thing I can't do is automatically get an AFW account. Edit: Looks like I was being impatient, the AFW account provisioned itself after a few minutes of waiting when I reset a device.
... View more