๐ฑ Recipe ยท Intune & Device Management
List Intune managed devices for a specific user
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
Context
Why This Matters
When supporting an end user โ whether troubleshooting a device issue, preparing for offboarding, or auditing hardware โ IT admins frequently need to quickly answer the question: What devices does this person have enrolled in Intune?
Intune (Microsoft Endpoint Manager) tracks every enrolled device and associates it with a primary user (the user who enrolled it or was assigned via Autopilot). Listing those devices gives you a consolidated view of the user's mobile phones, laptops, and tablets, along with each device's compliance posture and identifying hardware details.
Common triggers for running this recipe:
- 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
- Compliance audit โ confirming a user's devices meet policy
- Hardware inventory / asset reconciliation
- Investigating suspicious sign-ins from an unknown device
Expected Outcomes
After completing this recipe you will have:
- 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 (used as input to downstream actions like wipe, retire, sync, or remove primary user)
- A reusable script you can rerun for any UPN on demand
Risks & Considerations
Things to watch for
- Primary user vs. registered user:
managedDevicesfiltered byuserPrincipalNamereturns devices where the user is the primary user. A device shared across multiple users may not appear for every sign-in user. Use theusers/{id}/managedDevicesorregisteredOwners/registeredUsersrelationships if you need a different view. - Stale records: A device may appear even if it hasn't checked in for weeks. Always inspect
lastSyncDateTimebefore taking destructive actions. - Permissions scope:
DeviceManagementManagedDevices.Read.Allis tenant-wide. Only grant it to accounts or apps that genuinely 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 recipe โ it is read-only. Use a dedicated, reviewed workflow for destructive device actions.
Required Permissions
| Permission | Why It's Needed |
|---|---|
| DeviceManagementManagedDevices.Read.All | Required to read Intune managed device records tenant-wide, including the devices associated with a specific user. |
| User.Read.All | Required to resolve the target user's UPN to a directory object and confirm display name before listing their devices. |
The fastest way to get this done โ just ask Dex. Copy the prompt below and paste it into your Dex conversation.
For IT Admins
Paste into Dex CoAdmin