Skip to main content

Getting The DEP service reported an error. (https://mdmenrollment.apple.com [403]) when I try to set up a prestage enrollment on an ipad currently. Any ideas?

Gabe Shackney
Princeton Public Schools

We currently have this error at the DEP setting in JSS:
Unable to contact https://mdmenrollment.apple.com to get the list of devices


Clock skew was off by 10 min on our casper server for some reason. Fixed it by updating the time.

Gabe Shackney
Princeton Public Schools


I'm seeing this right now. The error reads : Unable to contact https://mdmenrollment.apple.com to get the list of devices We are running 9.73 My DEP key/token says it is good till Feb 2016.


Go into the DEP site and agree to the new agreements


Thanks for the tip @don.cochran ! Just went in and agreed to them.


Thank you don.cochran. That fixed my issue as well.


Phew, me too! I had just added a cert for Microsoft Intune (testing) and was terrified that I had broken something that would required re-enrolling everything in the JSS...fortunately it was just that I needed to agree to the updated terms since iOS 10 and macOS Sierra came out. Thanks!


After multiple troubleshooting steps

Renewed server token file
Replaced the public key
made sure the time and date were correct on the JSS Server
Restart Tomcat
Accepted the new Terms and Agreement from Apple

I ended up renewed server token file, replaced the public key again and creating a new Prestage Enrollment

so far we do not have any errors


@Chriskmpruitt , this was extremely helpful! Replacing the public key and server token file were the exact fix for me. Thank you!


I'm not really sure what you mean about accepting new terms and agreements


Ran into this issue Friday as well. Replacing the server token seems to have fixed it.


Yep we are getting this today, can you do this using apple school manager to fix the issues? and if you replace any tokens do you have to push anything out to all clients?


Fixed 1. Click Gear icon then Global Management then Device Enrollment Program.
2. Click Public Key button to download the public key.
3. Log into https://school.apple.com/ and click Manage Servers then click on our MDM and then click the replace public key link.
4. Upload the new public key. 5. Generate and download new token. 6. Edit our existing DEP and upload the newly generated token.
7. Restart Tomcat on server

All working, happy days :)


We just had this issue. The account that issued the tokens in deploy had it's admin rights removed by another admin. The original admin had left the organization. Something to check first if you have multiple DEP "servers" & multiple JAMF servers making re-issuing certs just to test problematic.

Giving the account that issued the tokens admin rights again re-allowed the tokens to be accepted. Passable work around until a service account can be created and new tokens can be issued for everything. Something to watch out for in Higher Ed when every department is an separate entity in itself and Apple only allows one DEP contract. Issue your tokens from a service account.


We noticed that DEP broke with the publishing of the new Software License Agreements for 10.13., tvOS, iOS.
Accepting the new agreements in school.apple.com did not do the trick alone, but getting a new token as mentioned above got everything working again.


Accepting the new terms fixed mine.


We had this issue last week but after accepting the new terms it was fixed ! But to our surprise yesterday morning we had the same issue again. I renewed the token, replaced the public key but with no luck. We are using the cloud service so we cannot change the time or restart the tomcat server.
Created an ticket with Jamf.


We had removed admin rights from our organizational email address in Apple School Manager and received this error. Giving back admin rights to this account fixed the issue for us.


Our issue was "Unable to contact https://mdmenrollment.apple.com to get the list of devices" and after PreStages were saved they would have a yellow error sign beside them.

@don.cochran Thank you! I logged into school.apple.com (ASM) and accepted the new terms and conditions. I got the notification from Apple to do so over the weekend but never saw the terms post yesterday like they were supposed to. All is fixed now!


Has anyone seen this when going into accept new terms and conditions?


@Steven5342 Only the primary Agent can approve the new T&C, unless they have elevated someone else to do so


@cdenesha where would I find who the primary agent is? Thank you.


Accounts -> Filter -> Role = Administrator


I was having the error message in my PreStage Enrollment settings, also. The fix for me (from Jamf Support) was to remove a device from the PreStage Enrollment assignment, save, and then re-add that device back in.


I had the same error message and after some troubleshooting, I found the issue was caused by checking Enabled Shared iPads in the pre-enrollment profile. Once I removed the check from the checkbox the message went away.