This is how to fix the error when attempting to join a device to Microsoft Entra ID (formerly Azure AD), for instance by signing in during the Windows OOBE (out of box experience) using a Microsoft work or school account.
Something went wrong.
Looks like we can’t connect to the URL for your organization’s MDM terms of use. Try again, or contact your system administrator with the problem information from this page.
This issue occurs because the user does not have an Intune license, and at the same time as joining Entra ID (formerly Azure AD) it’s trying to enroll the machine in Intune MDM. The fix is to therefore stop it from trying to enroll the user, however if your admin account does not have a license you won’t be able to do this. You can therefore fix the issue by getting a trial license of any license containing Microsoft Entra ID P1 (formerly Azure AD Premium P1), and configuring MDM enrollment settings in Microsoft Entra ID.
The fix is to configure the MDM User Scope in Microsoft Entra ID, depending on whether you want devices to automatically enroll in Intune or not.


If your admin account does not have a license you may see the following error (if not you don’t need to get a temporary license).

So, we can get a trial license for free (assuming you have not used all your trials for everything).

If you don’t see any URLs, click the Restore default links.
Now you have 3 options:
user.assignedPlans -any (assignedPlan.servicePlanId -eq "8e9ff0ff-aa7a-4b20-83c1-2f636b600ac2" -and assignedPlan.capabilityStatus -eq "Enabled")
Once you’ve done this, try signing in to the computer again and it should work. Note that you may need to reboot a computer if you had already tried and failed to join before making the changes.
If you see this error after configuring MDM scope, the user account doesn’t have an Intune license assigned. Assign a license containing Microsoft Intune (or Microsoft Entra ID P1) from the Microsoft 365 admin centre.
Check that device enrollment isn’t restricted in Intune → Device enrollment → Enrollment restrictions. If you’ve set platform restrictions, ensure Windows MDM enrollment is allowed.
This generic error often appears when Microsoft Entra ID can’t reach your MDM terms of use URL. Verify the URL is correct under Microsoft Entra ID → Mobility (MDM and MAM) → Microsoft Intune — the MDM terms of use URL should point to a valid HTTPS endpoint.
Q: Do all users need an Intune license? No. Only users who need MDM enrollment require a license. Set the MDM user scope to Some and use a dynamic group (as shown above) to target only licensed users.
Q: Will changing MDM scope affect existing enrolled devices? No. Changing the scope only affects new device enrollments. Already-enrolled devices remain managed.
Q: Can I skip Intune enrollment entirely? Yes. Set both MDM and MAM user scopes to None to join devices to Microsoft Entra ID without Intune enrollment.