--- title: "List All Intune Managed Devices in the Tenant" slug: "dex-wf-list-intune-managed-devices" updated: 2026-11-30T16:15:09Z published: 2026-11-30T16:15:09Z canonical: "documentation.sysaid.com/dex-wf-list-intune-managed-devices" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # List All Intune Managed Devices in the Tenant Inventory every Intune-enrolled device with owner, OS, and compliance state. **Complexity:** Beginner. **Impact:** read-only + reporting + no-user-impact + inventory. ## Why use this workflow A current inventory of Intune-managed devices is the foundation of most device-support workflows: compliance auditing, OS upgrade planning, lost or stolen device investigations, license reconciliation, and offboarding. Microsoft Intune exposes every enrolled device through the `deviceManagement/managedDevices` endpoint in Microsoft Graph. Run this workflow when you need a point-in-time snapshot of the fleet, for example before a compliance policy rollout, when preparing a device health report, or when a help desk ticket asks how many devices a user has. The same query also backs filters such as all non-compliant Android devices, or Macs that have not synced recently. ## Expected outcomes - A complete list of every device enrolled in Intune, including personal and corporate-owned devices. - Per-device metadata: device name, primary user (UPN), operating system and version, manufacturer, model, serial number, compliance state, encryption status, and last sync time. - An exportable dataset (CSV or JSON) you can pivot on for reporting, filter by compliance state, or feed into downstream automation. - A baseline device count for the tenant that you can compare over time. ## Risks and considerations ### Things to watch for - **Large tenants paginate.** Follow `@odata.nextLink` until it is absent, or you undercount. - **Beta endpoint.** The `/beta/` endpoint exposes more fields but is not covered by Microsoft's production SLA. Use `/v1.0/` for anything automated or alert-driven. - **PII considerations.** The result set contains user principal names, serial numbers, IMEIs, and MAC addresses. Treat exports as sensitive and store them according to your data-handling policy. - **Stale records.** Devices that were retired or wiped may remain in the list for a while. Filter on `lastSyncDateTime` if you need an active list. - **Throttling.** Very large tenants may hit Graph throttling. Use `$select` to reduce payload size and respect `Retry-After` headers. ## Required permissions | Permission | Why it's needed | | --- | --- | | DeviceManagementManagedDevices.Read.All | Required to read managed device inventory from Intune through Microsoft Graph. | | Directory.Read.All | Optional: needed if you want to resolve device primary-user details beyond the UPN returned in the managed device record. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` List every Intune-managed device in the tenant. Include device name, primary user, OS and version, manufacturer, model, and compliance state. Summarize totals by OS and by compliance status, and flag anything that hasn't synced in the last 30 days. ``` ## Manual steps (admin center) 1. Sign in to the [Microsoft Intune admin center](https://intune.microsoft.com) as a *Global Administrator*, *Intune Administrator*, or a custom role with read access to devices. 2. In the left navigation, go to **Devices** > **All devices**. 3. The **All devices** page lists every enrolled device with columns for Name, Managed by, Ownership, Compliance, OS, OS version, Last check-in, and Primary user. 4. Click **Columns** to add optional fields such as Serial number, Model, Manufacturer, or Device category. 5. Use the **Filter** pane to narrow the list by OS, compliance state, ownership, or enrollment type. 6. Click **Export** at the top of the grid to download the current (filtered) view as a CSV file. The export is capped at the portal's row limit. For a full-tenant export, use the API or PowerShell approach. ### Viewing a single device Click any row to open the device page. The **Overview** tab shows hardware details, compliance, and primary user. The **Properties** tab shows scope tags, category, and notes. ## Microsoft Graph API ### Endpoint ``` GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices ``` For more fields (for example, `managedDeviceOwnerType`, `isEncrypted`, `azureADDeviceId`), use the beta endpoint: ``` GET https://graph.microsoft.com/beta/deviceManagement/managedDevices ``` ### Recommended query with $select ``` GET /beta/deviceManagement/managedDevices?$select=id,deviceName,userPrincipalName,operatingSystem,osVersion,complianceState,model,manufacturer,serialNumber,lastSyncDateTime,isEncrypted ``` ### Example response (truncated) ``` {  "@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/managedDevices",  "@odata.nextLink": "https://graph.microsoft.com/beta/deviceManagement/managedDevices?$skiptoken=...",  "value": [    {      "id": "9f420691-1c67-4b46-b154-0e1b1342f4c4",      "deviceName": "DESKTOP-EXOTIC-SUBSIDY891",      "userPrincipalName": "user@contoso.com",      "operatingSystem": "Windows",      "complianceState": "nonCompliant",      "model": "Surface Laptop 5",      "manufacturer": "Microsoft"    }  ] } ``` ### Common filters - Non-compliant only: `?$filter=complianceState eq 'nonCompliant'` - macOS only: `?$filter=operatingSystem eq 'macOS'` - Stale (not synced since a date): `?$filter=lastSyncDateTime le 2024-01-01T00:00:00Z` - Single user: `?$filter=userPrincipalName eq '{user}'` ### Pagination When the response contains `@odata.nextLink`, send a GET request to that URL to retrieve the next page. Repeat until the property is absent. ## PowerShell ### Prerequisites ``` Install-Module Microsoft.Graph -Scope CurrentUser Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All" ``` ### Simple listing ``` Get-MgDeviceManagementManagedDevice -All |    Select-Object DeviceName, UserPrincipalName, OperatingSystem, OsVersion, ComplianceState, Manufacturer, Model ``` ### Export to CSV ``` Get-MgDeviceManagementManagedDevice -All |    Select-Object DeviceName, UserPrincipalName, OperatingSystem, OsVersion,                  ComplianceState, Manufacturer, Model, SerialNumber, LastSyncDateTime |    Export-Csv -Path "IntuneDevices.csv" -NoTypeInformation ``` The cmdlet handles pagination automatically when you supply `-All`.