Configure the MDM user scope so Entra-joined devices automatically enroll in Microsoft Intune.
Complexity: Intermediate. Impact: tenant-wide + device-management + enrollment + intune + entra-id.
Why use this workflow
When Windows devices join Microsoft Entra ID, Intune does not manage them automatically unless the tenant's Mobility (MDM and MAM) policy is configured with an MDM user scope of All or a specific group. Without this, users see their devices listed as Entra-joined but the Manage action is unavailable, no compliance policies apply, and apps and configurations cannot be deployed.
This workflow configures the Microsoft Intune MDM policy so that every user's Entra-joined device (or the devices of a scoped set of users) automatically enrolls into Intune at join time. This enables compliance, Conditional Access integration, and app delivery. It also provides navigation paths for the Entra admin center, since the Mobility (MDM and MAM) page has moved between portals over time.
Run this when:
- You are standing up a new tenant and preparing for device rollout.
- You are migrating off a third-party MDM or from unmanaged Entra-joined devices.
- You are troubleshooting why new Entra-joined PCs do not appear in the Intune admin center.
Expected outcomes
- The Microsoft Intune MDM policy
appliesTovalue is set toall(or to a named group). - New Entra-joined Windows devices auto-enroll into Intune during the join flow.
- Devices become eligible for compliance policies, Conditional Access, and app assignment.
- The Manage action in the Entra device view becomes available for enrolled devices.
Risks and considerations
Warnings
- Licensing is required. Users must hold a license that includes Intune. Users without an Intune license fail enrollment silently.
- Scope set to All affects every licensed user. For large or regulated tenants, pilot with a group first before you switch to
all. - Existing third-party MDM conflict. Devices already enrolled in another MDM do not silently re-enroll. Unenroll them from the previous MDM first.
- Hybrid Entra join. For hybrid joined devices, you also need the Group Policy setting Enable automatic MDM enrollment using default Azure AD credentials, with Intune configured for the correct credential type.
- MAM scope versus MDM scope. Do not set the MAM scope to
allunless you intend to apply app protection to personal or BYOD devices. It can cause unexpected user prompts on corporate machines.
Compliance notes
- Automatic enrollment brings personal data into the Intune inventory (device name, model, OS, compliance state). Update your privacy notice and the enrollment Terms of Use URL accordingly.
Required permissions
| Permission | Why it's needed |
|---|---|
| Policy.Read.All | Read the current Mobility (MDM and MAM) policy configuration. |
| Policy.ReadWrite.MobilityManagement | Update the MDM and MAM user scope (appliesTo) on the Microsoft Intune mobility policy. |
| Directory.Read.All | Resolve group IDs when you scope enrollment to a specific group. |
| Organization.Read.All | Verify that tenant licensing includes Intune entitlements before you enable enrollment. |
Ask Dex
Paste the prompt into a Dex conversation.
Prompt for IT admins
Enable automatic Intune MDM enrollment for our tenant so all Entra-joined Windows devices auto-enroll. Set the Microsoft Intune mobility policy MDM user scope to {scope: All | GroupName}, leave MAM scope at None, and confirm the change by reading the policy back.
Manual steps (admin center)
Prerequisites
- The Global Administrator or Intune Administrator role.
- Users have a license that includes Intune.
- Target devices are (or will be) Entra-joined or hybrid Entra-joined.
Step 1: Open the Mobility (MDM and MAM) page
The page has moved between portals. Use whichever of these paths appears in your tenant:
Microsoft Entra admin center > Identity > Devices > Mobility (MDM and MAM)
If you do not see it there, try:
Entra admin center > Identity > Devices > Overview > Device settings, then scroll to Mobility (MDM and MAM)
Or the legacy Azure portal path:
Azure portal > Microsoft Entra ID > Mobility (MDM and MAM)
You can also search for Mobility in the top search bar.
Step 2: Select Microsoft Intune
In the list of MDM providers, select Microsoft Intune. If Microsoft Intune is not listed, the Intune subscription has not been activated. Open the Intune admin center once to initialize it, then return here.
Step 3: Set the MDM user scope
- Under MDM user scope, choose one of the following:
- All: every licensed user's devices auto-enroll.
- Some: select Select groups and pick a pilot or rollout group.
- Leave the URLs (MDM Terms of Use, Discovery, Compliance) at their defaults unless you have a specific customization.
Step 4: (Optional) Configure the MAM scope
Set MAM user scope to None for a pure MDM deployment. Enable MAM only if you intend to apply App Protection Policies to unmanaged or BYOD devices.
Step 5: Save and verify
- Select Save at the top of the page.
- On a test PC, join the device to Entra ID: Settings > Accounts > Access work or school > Connect > Join this device to Azure AD.
- After sign-in, go to Settings > Accounts > Access work or school, select the account, and confirm that Info is available. This indicates that MDM enrollment succeeded.
- In the Intune admin center, go to Devices > All devices and confirm that the device appears with Managed by: Intune.
Microsoft Graph API
The Mobility (MDM and MAM) policy is exposed on the beta endpoint as mobileDeviceManagementPolicies and mobileAppManagementPolicies. The well-known policy ID for Microsoft Intune is 0000000a-0000-0000-c000-000000000000.
Step 1: Read the current MDM policy
GET https://graph.microsoft.com/beta/policies/mobileDeviceManagementPoliciesSample response:
{
"value": [{
"id": "0000000a-0000-0000-c000-000000000000",
"displayName": "Microsoft Intune",
"appliesTo": "none",
"isValid": true,
"discoveryUrl": "https://enrollment.manage.microsoft.com/enrollmentserver/discovery.svc",
"complianceUrl": "https://portal.manage.microsoft.com/?portalAction=Compliance",
"termsOfUseUrl": "https://portal.manage.microsoft.com/TermsofUse.aspx"
}]
}Step 2: Set the MDM scope to All
PATCH https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000
Content-Type: application/json
{
"appliesTo": "all"
}A successful call returns 204 No Content.
Step 3: (Alternative) Scope to a specific group
To scope to a group, set appliesTo to selected and add group references through the includedGroups navigation property:
PATCH /beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000
{
"appliesTo": "selected"
}
POST /beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000/includedGroups/$ref
{
"@odata.id": "https://graph.microsoft.com/v1.0/groups/{group-id}"
}Step 4: Verify
GET /beta/policies/mobileDeviceManagementPolicies/0000000a-0000-0000-c000-000000000000Confirm "appliesTo": "all" in the response.
Step 5: (Optional) Mirror the setting for MAM
PATCH /beta/policies/mobileAppManagementPolicies/0000000a-0000-0000-c000-000000000000
{
"appliesTo": "none"
}Accepted values for appliesTo: none, all, selected.
PowerShell
Use the Microsoft Graph PowerShell SDK to read and update the Intune mobility policy. This policy has no dedicated cmdlet, so call the same Graph endpoint through Invoke-MgGraphRequest.
Prerequisites
- PowerShell 7 or later (recommended).
- The Microsoft Graph PowerShell SDK:
Install-Module Microsoft.Graph -Scope CurrentUser. - An account with the Intune Administrator or Global Administrator role.
Step 1: Connect with the required scopes
Connect-MgGraph -Scopes "Policy.Read.All","Policy.ReadWrite.MobilityManagement","Directory.Read.All"Step 2: Read the current Intune MDM policy
# Well-known policy ID for Microsoft Intune
$policyId = "0000000a-0000-0000-c000-000000000000"
$current = Invoke-MgGraphRequest -Method GET `
-Uri "https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/$policyId"
$current | Format-List id, displayName, appliesTo, isValidStep 3: Set the scope to All
$body = @{ appliesTo = "all" } | ConvertTo-Json
Invoke-MgGraphRequest -Method PATCH `
-Uri "https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/$policyId" `
-Body $body -ContentType "application/json"Step 4: Verify
(Invoke-MgGraphRequest -Method GET `
-Uri "https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/$policyId").appliesTo
# Expect: allApproach for a reusable version
To turn these steps into a reusable script, add parameters for the scope (All, None, or a specific group), wrap the calls in error handling, and read the policy back after each change.