Troubleshooting iOS/iPadOS device enrollment errors in Microsoft Intune
Article
This article helps Intune administrators understand and troubleshoot problems when enrolling iOS/iPadOS devices in Intune. See Troubleshoot device enrollment in Microsoft Intune for additional, general troubleshooting scenarios.
iOS/iPadOS enrollment errors
The following table lists errors that end users might see while enrolling iOS/iPadOS devices in Intune.
The user must remove one of their currently enrolled mobile devices from the Company Portal before enrolling another. See detailed instructions here.
Company Portal Temporarily Unavailable
The Company Portal app on the device is out of date or corrupted.
Remove the app, validate user credentials, and then reinstall the app. See detailed instructions here.
APNSCertificateNotValid
There's a problem with the certificate that lets the mobile device communicate with your company's network.
The Apple Push Notification Service (APNs) provides a channel to contact enrolled iOS/iPadOS devices. Enrollment will fail and this message will appear if:
The steps to get an APNs certificate weren't completed, or
The APNs certificate has expired.
Renew the APNs certificate, and then re-enroll the device. Important: Make sure that you renew the APNs certificate. Don't replace the APNs certificate. If you replace the certificate, you have to re-enroll all iOS/iPadOS devices in Intune. For Intune standalone, see Renew Apple MDM push certificate. For Microsoft 365, see Create an APNs Certificate for iOS devices.
AccountNotOnboarded
There's a problem with the certificate that lets the mobile device communicate with your company's network.
The Apple Push Notification Service (APNs) provides a channel to contact enrolled iOS/iPadOS devices. Enrollment will fail and this message will appear if:
The steps to get an APNs certificate weren't completed, or
The user might have tried to enroll using a non-iOS device. The mobile device type that you're trying to enroll isn't supported.
Confirm that device is running iOS/iPadOS version 8.0 or later.
Make sure that your user's device is running iOS/iPadOS version 8.0 or later.
UserLicenseTypeInvalid
The device can't be enrolled because the user's account isn't yet a member of a required user group or the user doesn't have the correct license.
Users must have the correct license type for the mobile device management authority. For example, they'll see this error if Intune has been set as the MDM authority, but the user has a System Center 2012 R2 Configuration Manager license.
This section includes token sync errors related to Apple Automated Device Enrollment (ADE):
Apple Business Manager (ABM)
Apple School Manager (ASM)
Error message
Cause
Solution
Expired or invalid token
The token may be expired, revoked, or malformed.
Renew the token. If you have any issues renewing the token, contact the Intune support team, as you may need to use a new public key on the existing MDM server in Apple Business Manager or Apple School Manager: Preferences > MDM Server Settings > Upload Public Key.
Access denied
Intune can't talk to Apple anymore. For example, Intune has been removed from the MDM server list in Apple Business Manager or Apple School Manager. The token has possibly expired.
1. Verify whether your token has expired, and if a new token was created. 2. Check to see if Intune is in the MDM server list
Terms and conditions not accepted
New terms and conditions (T&C) need to be accepted in Apple Business Manager or Apple School Manager.
Accept the new T&C in Apple Apple Business Manager or Apple School Manager Portal. Note: This must be done by a user with the Administrator role in Apple Business Manager or Apple School Manager.
Sign in to Apple Business Manager or Apple School Manager and find the token server that needs to be updated. Then, select Edit.
In the MDM Server Settings section, upload the .pem file, and then select Save.
Note
If you receive an error message indicating the file format is incorrect, make sure that the file is created according to step 5. After the file format is fixed, close the page and select Edit again.
Select Download Token to download the new token.
Sign in to Intune and select to refresh the downloaded token.
Other errors and issues
This section provides troubleshooting steps for these additional scenarios:
Enrolling ADE devices with user affinity requires WS-Trust 1.3 Username/Mixed endpoint to be enabled to request user tokens. Active Directory enables this endpoint by default. If WS-Trust 1.3 isn't enabled, Automated Device Enrollment (ADE) iOS/iPadOS devices can't be enrolled.
To get a list of enabled endpoints, use the Get-AdfsEndpoint PowerShell cmdlet and looking for the trust/13/UsernameMixed endpoint. For example:
This error indicates that the Company Portal app is out of date or corrupted.
Solution:
Remove the Company Portal app from the device.
Download and install the Microsoft Intune Company Portal app from App Store.
Re-enroll the device.
User Name Not Recognized
The error "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." indicates that the user who is trying to enroll the device doesn't have a valid Intune license.
Cause: There's a connection issue between the device and the Apple ADE service.
Solution: Fix the connection issue, or use a different network connection to enroll the device. You may also have to contact Apple if the issue persists.
The configuration for your iPhone/iPad couldn't be downloaded from <Company Name>: Invalid Profile
Cause: The enrollment is blocked by a device type restriction.
Under Device type restrictions, select All Users > Properties.
Select Edit next to the Platform settings.
On the Edit restriction page, select Allow for iOS/iPadOS and proceed to the Review + save page, then select Save.
ADE enrollment doesn't start
When you turn on an ADE-managed device that is assigned an enrollment profile, the Intune enrollment process isn't initiated.
Cause: The enrollment profile is created before the ADE token is uploaded to Intune.
Solution:
Edit the enrollment profile. You can make any change to the profile. The purpose is to update the modification time of the profile.
Synchronize ADE-managed devices: In the Microsoft Intune admin center, choose Devices > iOS > iOS enrollment > Enrollment program tokens > choose a token > Sync now. A sync request is sent to Apple.
ADE enrollment stuck at user login
When you turn on an ADE-managed device that is assigned an enrollment profile, the initial setup sticks after you enter credentials.
Cause: Multifactor authentication (MFA) is enabled. Currently, MFA doesn't work during enrollment on ADE devices if the authentication method is set to Setup Assistant (legacy).
Solution: Disable MFA, and then re-enroll the device. Alternatively, change the authentication method to Setup Assistant with modern authentication.
Authentication doesn't redirect to the government cloud
Government users signing in from another device are redirected to the public cloud for authentication rather than the government cloud.
Cause: Microsoft Entra ID doesn't yet support redirecting to the government cloud when signing in from another device.
Solution:
Use the iOS Company Portal Cloud setting in the Settings app to redirect government users' authentication towards the government cloud. By default, the Cloud setting is set to Automatic and Company Portal directs authentication towards the cloud that is automatically detected by the device (such as Public or Government). Government users who are signing in from another device will need to manually select the government cloud for authentication.
Open the Settings app and select Company Portal. In the Company Portal settings, select Cloud. Set the Cloud to Government.
Plan and execute an endpoint deployment strategy, using essential elements of modern management, co-management approaches, and Microsoft Intune integration.