IntuneDeep dive

iPhone, iPad and Mac enrollment and MDM errors in Intune: a quick reference

Look up an Apple enrollment error in Intune: NoEnrollmentPolicy, DeviceCapReached, APNs and ADE token sync errors, Profile Installation Failed and Mac messages, with the first check.

Apple enrollment in Intune fails in four places: the Company Portal app, the profile installation screen in Settings, Setup Assistant on an Automated Device Enrollment (ADE) device, or the token pages in the Intune admin center. Here are the iPhone, iPad and Mac errors Microsoft documents, with the meaning, usual cause and first check for each.

Codes in this quick reference

  • NoEnrollmentPolicy: No enrollment policy found (APNs certificate missing, invalid or expired)Company Portal (iOS/iPadOS)
  • DeviceCapReached: Too many mobile devices are enrolled alreadyCompany Portal (iOS/iPadOS)
  • Company Portal Temporarily Unavailable: app out of date or corrupted, or the device limit was reachedCompany Portal (iOS/iPadOS)
  • APNSCertificateNotValid: problem with the certificate that lets the device talk to your company's networkCompany Portal (iOS/iPadOS)
  • AccountNotOnboarded: Apple MDM push (APNs) certificate not set up or expired (iOS/iPadOS)Company Portal (iOS/iPadOS)
  • DeviceTypeNotSupported: the device type you're trying to enroll isn't supportedCompany Portal (iOS/iPadOS)
  • UserLicenseTypeInvalid: user not in a required group or missing the correct licenceCompany Portal (iOS/iPadOS)
  • MdmAuthorityNotDefined: the mobile device management authority hasn't been definedCompany Portal

+ 28 more codes in the tables below.

How this guide is organised: How to read these errors → iPhone and iPad enrollment errors → Automated Device Enrollment (ADE) errors → Apple MDM push certificate → Mac enrollment errors → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these errors. 2. iPhone and iPad enrollment errors. 3. Automated Device Enrollment (ADE) errors (3 parts: Token sync errors in the Intune admin center; ADE errors on the device; When there is no error message). 4. Apple MDM push certificate. 5. Mac enrollment errors. 6. How to verify a fix. Toolbox: Get-AdfsEndpoint, Device onboarding › Enrollment, user › Devices, DeviceCapReached, NoEnrollmentPolicy.1How to read these errors2iPhone and iPad enrollmenterrors3Automated Device Enrollment(ADE) errorsToken sync errors in theIntune admin centerADE errors on the deviceWhen there is no errormessage4Apple MDM push certificate5Mac enrollment errors6How to verify a fixTOOLBOXGet-AdfsEndpointDevice onboarding › Enrollmentuser › DevicesDeviceCapReachedNoEnrollmentPolicyHow this guide is organised: How to read these errors → iPhone and iPad enrollment errors → Automated Device Enrollment (ADE) errors → Apple MDM push certificate → Mac enrollment errors → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these errors. 2. iPhone and iPad enrollment errors. 3. Automated Device Enrollment (ADE) errors (3 parts: Token sync errors in the Intune admin center; ADE errors on the device; When there is no error message). 4. Apple MDM push certificate. 5. Mac enrollment errors. 6. How to verify a fix. Toolbox: Get-AdfsEndpoint, Device onboarding › Enrollment, user › Devices, DeviceCapReached, NoEnrollmentPolicy.1How to read these errors2iPhone and iPad enrollment errors3Automated Device Enrollment (ADE) errorsToken sync errors in the Intune admin centerADE errors on the deviceWhen there is no error message4Apple MDM push certificate5Mac enrollment errors6How to verify a fixTOOLBOXGet-AdfsEndpointDevice onboarding › Enrollmentuser › DevicesDeviceCapReachedNoEnrollmentPolicy
At a glance: how this guide is organised · 3 steps · 5 key settings and tools

How to read these errors#

Where the error appears tells you which part of the chain broke:

  • Company Portal (iPhone, iPad or Mac): codes such as DeviceCapReached or a plain-language equivalent. They reflect Intune's checks on the user and tenant (licence, MDM authority, device limit, push certificate), so the fix is usually in the admin center.
  • Settings on the iPhone or iPad: Profile Installation Failed means iOS/iPadOS rejected the management profile. Start on the device.
  • Setup Assistant (ADE): an error, no remote management screen, or a stop after sign-in. Start with the enrollment program token and the profile assigned to the serial number.
  • Intune admin center: token errors show under Devices › Device onboarding › Enrollment, Apple tab, Enrollment program tokens. The Apple MDM push certificate is on the same tab, and Tenant administration › Tenant status › Connector status shows its health.

Ask the user for the exact text and a screenshot: the Company Portal often shows a generic message while its logs hold the specific code. Then open the user in Troubleshooting + support › Troubleshoot to see licence, devices and enrollment failures together. Personal iPhones on account-driven User Enrollment follow a different flow (setup guide).

iPhone and iPad enrollment errors#

Sources: Microsoft Learn's iOS/iPadOS enrollment errors and general enrollment troubleshooting pages. The licence, MDM authority and device-limit rows apply to Macs too.

Company Portal codes and messages#

CodeMeaningUsual causeFirst check
NoEnrollmentPolicyNo enrollment policy foundMissing, invalid or expired Apple MDM push (APNs) certificatePush certificate status; iOS/iPadOS enrollment set up and allowed
DeviceCapReachedToo many mobile devices are enrolled alreadyUser at the device limit (stale records count too)Device limit restriction vs Users › All users › user › Devices; delete stale devices
Company Portal Temporarily UnavailableGeneric Company Portal failureApp out of date or corrupted; can also hide a device capReinstall; test sign-in at https://portal.manage.microsoft.com in Safari; check the device limit
APNSCertificateNotValidThere's a problem with the certificate that lets the mobile device communicate with your company's networkPush certificate never completed, or expiredRenew (don't replace) the push certificate; re-enroll
AccountNotOnboardedSame certificate messageAPNs setup incomplete or expiredAs above (on Jamf-managed Macs it means something else)
DeviceTypeNotSupportedThe device type you're trying to enroll isn't supportedNot an iOS/iPadOS device, or an unsupported OS versionDevice model and OS version
UserLicenseTypeInvalidThe user isn't in a required group or doesn't have the correct licenceNo Intune licence, or the wrong type for the MDM authorityAssign an Intune licence
MdmAuthorityNotDefined, MDM authority not definedThe mobile device management authority hasn't been definedAuthority not set, or the user's account didn't sync correctlyTenant administration › Tenant status; the user's UPN in Microsoft Entra ID
Looks like your IT admin hasn't set an MDM authority. Get help from your IT admin or try again later.The same problem, as users see itMDM authority not setAs above
Your IT admin hasn't given you access to use this app. Get help from your IT admin or try again later.User can't use IntuneMissing licence, or the wrong licence typeAssign the licence, then retry
User Name Not Recognized. This user account isn't authorized to use Microsoft Intune. Contact your system administrator if you think you have received this message in error.No valid Intune licenceLicence missingThe user's licences in the Microsoft 365 admin center, then re-enroll
Workplace Join failedCompany Portal couldn't register the deviceApp out of date or corruptedRemove the app, reinstall it from the App Store, re-enroll
The configuration for your iPhone/iPad couldn't be downloaded from <Company Name>: Invalid ProfileEnrollment blocked by policyA device platform (type) restriction blocks iOS/iPadOS enrollmentAllow iOS/iPadOS in the All Users platform restriction; to keep personal devices out, block personally owned devices rather than the platform

Profile Installation Failed messages#

Shown in Settings while the management profile installs (source: Microsoft Learn's profile installation failed page).

CodeMeaningUsual causeFirst check
Profile installation failed (no detail)The management profile didn't installNo licence, another MDM, an existing management profile, or Safari not default / cookies offThose four, in that order
Profile Installation Failed. A Network Error Has Occurred.An unspecified problem with iOS/iPadOS on the deviceDespite the wording, the OS, not the networkBack up, restore from recovery mode as a new device, re-enroll
Profile Installation Failed. Connection to the server could not be established.The device couldn't complete enrollment with IntuneMicrosoft lists four: personal devices blocked by an enrollment restriction, a previous user not removed from Intune, another MDM's management profile, or no Intune licenceRestrictions and licence; remove other management profiles; retry from https://portal.manage.microsoft.com in Safari, clearing (not blocking) cookies if it still fails
Profile Installation Failed. The new MDM payload does not match the old payload.A management profile is already installedLeftover profile from an earlier enrollment or another MDMSettings › General › VPN & Device Management, tap the profile, Remove Management, re-enroll

Note: An expired-looking IOSProfileSigning.manage.microsoft.com certificate in the management profile is expected: iOS/iPadOS keeps it after enrollment by design, and it doesn't affect enrolled devices.

Automated Device Enrollment (ADE) errors#

Token sync errors in the Intune admin center#

Shown on the enrollment program token. Renewal, sync limits and default profiles: Apple ADE devices missing in Intune.

CodeMeaningUsual causeFirst check
Expired or invalid tokenIntune can't use the tokenToken expired, revoked or malformedRenew it; if that fails, support may have you upload a new public key in Apple
Access deniedIntune can no longer talk to AppleIntune removed from the MDM server list in Apple, or the token expiredDoes the MDM server still exist? Was a newer token downloaded?
Terms and conditions not acceptedApple is waiting for new termsNew T&C in Apple Business (formerly Apple Business Manager) or Apple School ManagerA user with the Administrator role there accepts them
Internal server errorNeeds investigationNot documentedOpen a support case; Microsoft needs more logs
Invalid support phone numberEnrollment profile rejectedInvalid support phone number in the profileEdit the phone number in your enrollment profiles
Invalid configuration profile nameEnrollment profile rejectedName invalid, empty or too longRename the profile
Invalid department entryEnrollment profile rejectedDepartment field invalidEdit the department field
Apple profile not foundNo matching profile at AppleSeveral possible causesCreate a new enrollment profile and assign it to the devices
Invalid cursorSync cursor rejected by Apple or not foundService-side sync stateIntune support can retry the sync
Cursor expiredSync cursor expired on Intune's sideService-side sync stateIntune support can retry the sync
Required cursorIntune never set the cursor during syncService-side sync stateIntune support fixes the sync
An error occurred while uploading the Enrollment Program token.Token upload failed, often with Request ID: AjaxError: ajaxExtended call failedNot documented; the fix re-keys the MDM serverThe Graph workaround below

Microsoft's workaround for the upload error, run in Graph Explorer as an Intune administrator:

Text
GET https://graph.microsoft.com/beta/deviceManagement/depOnboardingSettings
GET https://graph.microsoft.com/beta/deviceManagement/depOnboardingSettings/<TokenGuid>/getEncryptionPublicKey

Save the returned value as a three-line .pem file (BEGIN line, base64 string without line breaks, END line). In Apple Business or Apple School Manager, edit the MDM server, upload the .pem, save, select Download Token, and upload it to the existing token in Intune.

ADE errors on the device#

CodeMeaningUsual causeFirst check
XPC_TYPE_ERROR Connection invalid (device log)ADE enrollment fails at power-onConnection problem between the device and Apple's ADE serviceFix the network or try a different one; contact Apple if it persists

When there is no error message#

  • Remote management never starts: the profile was created before the token was uploaded, or none is assigned (Microsoft Learn). Assign one or make any small edit to it, sync the token, then turn the device on.
  • Setup Assistant stops after sign-in: MFA with the Setup Assistant (legacy) method. Switch to Setup Assistant with modern authentication.
  • ADE with user affinity fails with AD FS: the WS-Trust 1.3 Username/Mixed endpoint must be enabled: Get-AdfsEndpoint -AddressPath "/adfs/services/trust/13/UsernameMixed".
  • Government users sent to the public cloud when signing in from another device: set Settings › Company Portal › Cloud to Government.

Apple MDM push certificate (APNs)#

Every iOS/iPadOS and macOS enrollment depends on this tenant-wide certificate, so a lapsed one surfaces as NoEnrollmentPolicy, APNSCertificateNotValid or AccountNotOnboarded. What Microsoft documents:

  • Valid for 365 days; renew every year. After expiry there's a 30-day grace period.
  • Renew with the same Apple account: Devices › Device onboarding › Enrollment, Apple tab, Apple MDM Push Certificate, download the CSR, then choose Renew on the existing certificate in the Apple Push Certificates Portal.
  • Never create a new certificate instead: replacing it means re-enrolling every iOS/iPadOS device.
  • Moving to Managed Apple Accounts? Ask Apple to migrate the existing certificate (federation guide).

Tip: To renew the right certificate, check an enrolled iPhone: the management profile's details (Settings › General › VPN & Device Management) include a Topic value whose GUID matches the certificate's UID in Apple's portal. Renewal walk-through: Macs unexpectedly unenrolled from Intune.

Mac enrollment errors#

Sources: Microsoft Learn's macOS virtual machine enrollment and keychain error -25244 pages, plus its Jamf registration errors page.

CodeMeaningUsual causeFirst check
It looks like you're using a virtual machine. Make sure you've fully configured your virtual machine, including serial number and hardware model. If this isn't a virtual machine, please contact support.Intune can't identify the MacTest VM without a serial number and hardware modelSet both in the VM, then re-enroll
We're having trouble getting your device managed. This problem could be caused if you're using a virtual machine, have a restricted serial number, or if this device is already assigned to someone else.Enrollment refusedMisconfigured VM, personal Macs blocked, or a stale record assigned to another userAdd the serial number as a corporate device identifier, or delete the old records in Devices › All devices
Your Mac cannot be enrolled at this timeCompany Portal enrollment failedOne documented cause: stale keychain entries (next row)Search the Company Portal logs for -25244
error code:-25244 (errSecInvalidOwnerEdit)Company Portal couldn't delete old workplace join items from the keychainStale or corrupted Intune-related keychain entriesAs local admin, delete the workplace and listed Microsoft items in Keychain Access; re-enroll
Account not onboarded (Jamf-managed Mac)Registration ran without its link to JamfCompany Portal opened directly instead of from Jamf Self ServiceRelaunch Company Portal from Self Service
Device is already enrolled (Jamf-managed Mac)Duplicate or failed registrationAn old Intune record left after unenrolling, or repeated attemptsRemove the old record, then register again

How to verify a fix#

  • iPhone or iPad: the management profile shows under Settings › General › VPN & Device Management and the device appears in Devices › By platform › iOS/iPadOS with a recent check-in. For ADE, the serial number is in the token's device list with a profile assigned.
  • Mac: profiles status -type enrollment reports MDM enrollment as Yes (User Approved); ADE Macs also report Enrolled via DEP: Yes.
  • Push certificate: active in both the admin center and the Apple Push Certificates Portal.
  • Tokens: no error and a recent successful sync.
PowerShell
Connect-MgGraph -Scopes "DeviceManagementServiceConfig.Read.All"
# Push certificate: Apple ID, topic, expiry
Invoke-MgGraphRequest -Method GET -OutputType PSObject -Uri "https://graph.microsoft.com/beta/deviceManagement/applePushNotificationCertificate" |
    Select-Object appleIdentifier, topicIdentifier, expirationDateTime
# ADE tokens: expiry and last successful sync
(Invoke-MgGraphRequest -Method GET -OutputType PSObject -Uri "https://graph.microsoft.com/beta/deviceManagement/depOnboardingSettings").value |
    Select-Object tokenName, tokenExpirationDateTime, lastSuccessfulSyncDateTime

Enrolled, but apps or settings fail? Switch to the app install error codes (plus VPP tokens), profile and compliance codes or, for sign-in blocks, AADSTS errors.

References#

Revision history: Oct 2026 — re-checked against Microsoft Learn: 5 corrections.

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)