List Intune Managed Devices for a Specific User

Prev Next

Retrieve all Intune-enrolled devices assigned to a user, including OS, model, serial number, and compliance state.

Complexity: Beginner. Impact: read-only + device-management + user-lookup + audit.

Why use this workflow

When you support an end user, whether you troubleshoot a device issue, prepare for offboarding, or audit hardware, you often need to answer a simple question: What devices does this person have enrolled in Intune?

Intune tracks every enrolled device and associates it with a primary user (the user who enrolled it, or the user assigned through Autopilot). Listing those devices gives you a consolidated view of the user's phones, laptops, and tablets, along with each device's compliance state and identifying hardware details.

Common reasons to run this workflow:

  • A user reports a problem and you need to identify which device to investigate
  • Offboarding: you need to wipe or retire every device the user owns
  • A compliance audit: confirming that a user's devices meet policy
  • Hardware inventory and asset reconciliation
  • Investigating suspicious sign-ins from an unknown device

Expected outcomes

  • A list of every Intune managed device where the target user is the primary user
  • For each device: device name, operating system and version, model, serial number, enrollment date, last check-in, and compliance state
  • The device ID, which you use as input to downstream actions such as wipe, retire, sync, or remove primary user

Risks and considerations

Things to watch for

  • Primary user versus registered user. managedDevices filtered by userPrincipalName returns devices where the user is the primary user. A device shared across several users may not appear for every user who signs in. Use the users/{id}/managedDevices or registeredOwners and registeredUsers relationships if you need a different view.
  • Stale records. A device can appear even if it has not checked in for a long time. Inspect lastSyncDateTime before you take any destructive action.
  • Permission scope. DeviceManagementManagedDevices.Read.All is tenant-wide. Grant it only to accounts or apps that need Intune visibility.
  • PII. Device serial numbers and names can identify individuals. Treat exports as sensitive and store them accordingly.
  • Do not trigger a wipe or retire from this workflow. It is read-only. Use a dedicated, reviewed workflow for destructive device actions.

Required permissions

PermissionWhy it's needed
DeviceManagementManagedDevices.Read.AllRequired to read Intune managed device records tenant-wide, including the devices associated with a specific user.
User.Read.AllRequired to resolve the target user's UPN to a directory object and confirm the display name before you list their devices.

Ask Dex

Paste the prompt into a Dex conversation.

Prompt for IT admins

List all Intune managed devices for {user}. Include device name, OS and version, model, serial number, compliance state, and last check-in date.

Manual steps (admin center)

  1. Sign in to the Microsoft Intune admin center with an account that has at least the Intune Service Administrator or Help Desk Operator role.
  2. In the left navigation, go to Users > All users.
  3. Search for the target user by display name or UPN (for example, jane.doe@contoso.com) and select their name to open the user profile.
  4. In the user profile, select Devices from the left menu.
  5. The table lists every Intune managed device where this user is the primary user, including:
    • Device name
    • Managed by (Intune or co-managed)
    • Ownership (Corporate or Personal)
    • Compliance
    • OS and OS version
    • Last check-in
  6. Select any device row to see hardware details (serial number, model, IMEI), compliance policy results, assigned apps, and available remote actions.
  7. (Optional) Select Export at the top of the device list to download a CSV file.

Alternative: the Devices page

You can also go to Devices > All devices and filter on the Primary user UPN column. This is useful when you want to compare several users in one view.

Microsoft Graph API

The flow is two calls: resolve the user, then query managedDevices filtered by UPN.

1. Resolve the user

GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}?$select=id,displayName,userPrincipalName

Example response:

{
  "id": "8a5f...e2b1",
  "displayName": "Jane Doe",
  "userPrincipalName": "jane.doe@contoso.com"
}

2. List the user's managed devices

GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices
  ?$filter=userPrincipalName eq 'jane.doe@contoso.com'
  &$select=id,deviceName,operatingSystem,osVersion,model,manufacturer,serialNumber,complianceState,lastSyncDateTime,enrolledDateTime,managedDeviceOwnerType

Example response:

{
  "value": [
    {
      "id": "c1d2...9f0a",
      "deviceName": "JDOE-LAPTOP",
      "operatingSystem": "Windows",
      "osVersion": "10.0.22631.4317",
      "model": "Latitude 7440",
      "serialNumber": "ABCD1234",
      "complianceState": "compliant",
      "lastSyncDateTime": "2025-01-14T08:22:11Z"
    }
  ]
}

Alternative endpoint

You can also use the user-relative navigation, which is equivalent:

GET https://graph.microsoft.com/v1.0/users/{id}/managedDevices

Required permissions

  • User.Read.All (delegated or application): to resolve the user
  • DeviceManagementManagedDevices.Read.All (delegated or application): to read managed devices

The first call may return HTTP 403 Insufficient privileges if the signed-in account or app lacks consent. Grant admin consent for both scopes under Entra ID > Enterprise applications > your app > Permissions.

PowerShell

The Microsoft.Graph PowerShell SDK wraps the Graph endpoints above. Install it once, connect with the right scopes, then call Get-MgDeviceManagementManagedDevice.

1. Install and import the module

Install-Module Microsoft.Graph -Scope CurrentUser
Import-Module Microsoft.Graph.DeviceManagement
Import-Module Microsoft.Graph.Users

2. Connect with the required scopes

Connect-MgGraph -Scopes "User.Read.All", "DeviceManagementManagedDevices.Read.All"

You are prompted to sign in and consent. An admin must grant consent the first time these scopes are used in the tenant.

3. Look up the user and list their devices

$upn = 'jane.doe@contoso.com'
$user = Get-MgUser -UserId $upn -Property Id,DisplayName,UserPrincipalName

$devices = Get-MgDeviceManagementManagedDevice -Filter "userPrincipalName eq '$upn'" -All

$devices | Select-Object DeviceName, OperatingSystem, OsVersion, Model, SerialNumber, ComplianceState, LastSyncDateTime | Format-Table -AutoSize

4. (Optional) Export to CSV

$devices | Select-Object DeviceName, OperatingSystem, OsVersion, Model, SerialNumber, ComplianceState, LastSyncDateTime, EnrolledDateTime |
  Export-Csv -Path ".\$($user.DisplayName)-devices.csv" -NoTypeInformation