How to get Microsoft Entra ID user-registered devices using Get-MgUserRegisteredDevice

Getting Microsoft Entra ID user registered devices

Admins need to see the devices registered by a user in Microsoft Entra ID to monitor and manage access to corporate resources, ensuring that only authorized and compliant devices are used. This helps identify potential security risks, such as outdated, unmanaged, or compromised devices, that could threaten the organization's overall security posture.

Get Microsoft Entra ID user-registered devices using Microsoft Graph PowerShell

Prerequisites

Before using the Get-MgUserRegisteredDevice cmdlet, ensure the following:

  • The Microsoft Graph PowerShell module is installed. If not, install it using this script:
    Install-Module Microsoft.Graph -Scope CurrentUser
  • Connect to Microsoft Graph PowerShell with the required permissions to fetch Microsoft Entra ID user-registered devices using this script:
    Connect-MgGraph -Scopes "User.Read.All","Group.ReadWrite.All","Directory.Read.All"

Using the Get-MgUserRegisteredDevice command to get Microsoft Entra ID user-registered devices

The Get-MgUserRegisteredDevice cmdlet can be used in Microsoft Graph PowerShell to fetch Microsoft Entra ID user-registered devices. Here's the syntax:

Get-EntraUserRegisteredDevice
-UserId <String>
[-All]
[-Top <Int32>]
[-Property <String[]>]
[<CommonParameters>]

An example use case using the Get-MgUserRegisteredDevice cmdlet

List the devices registered by a particular user

Get-MgUserRegisteredDevice -UserId <"user_id"> | Select-Object Id -ExpandProperty AdditionalProperties

In this command, replace user_id with the user's ID for whom you would like to list the user-registered devices.

Supported parameters

The following table contains some parameters that can be used along with the Get-MgUserRegisteredDevice command to fetch Microsoft Entra ID user-registered devices efficiently.

Parameters Description
-All This parameter retrieves all user-registered devices without default pagination limits.
-UserId This parameter retrieves user-registered devices based on their unique identifiers, such as user principal name or object ID.
-Property This parameter retrieves specific attributes of user-registered devices.

Limitations of using Graph PowerShell scripts to get Microsoft Entra ID user-registered devices

  • Graph PowerShell requires IT admins to upgrade from Azure AD PowerShell (now depreciated) and have familiarity with PowerShell scripting.
  • The Microsoft Graph API imposes throttling limits, which may affect performance when fetching user-registered devices in bulk.
  • The scripts may require extra effort to format and export data for reporting purposes.
  • It demands technical expertise to troubleshoot errors.
  • The lack of an intuitive interface makes the overall experience less user-friendly, particularly for those new to scripting.

Highlights of using ADManager Plus

Bid adieu to complicated PowerShell scripts with ManageEngine ADManager Plus. ADManager Plus is a powerful Microsoft 365 management and reporting solution that can help you perform complicated, administrative tasks from a single, user-friendly console.

  • ADManager Plus comes with an intuitive interface that streamlines the report generation process.
  • Use comprehensive and customizable reports with options to schedule and automate report generation.
  • Instantly add, remove, or modify users with on-the-fly user management actions.
  • ADManager Plus is optimized for large-scale environments and does not require any scripts for bulk operations.
  • Delegate tasks to technicians without elevating their native privileges.
  • Keep a watchful eye on your IT environment with more than 200 prepackaged reports.
  • Export reports in various formats, such as CSV or HTML, in just a few clicks.

Say goodbye to PowerShell hassles and easily manage Microsoft Entra ID using ADManager Plus.

 
  • Fetch Microsoft Entra ID user registered devices using ADManager Plus
  • Get Microsoft Entra ID user registered devices using Microsoft Graph PowerShell
  • Limitations of using Graph PowerShell scripts to get Microsoft Entra ID user registered devices
  • Highlights of using ADManager Plus to get Microsoft Entra ID user registered devices
The one-stop solution to Active Directory Management and Reporting
Email Download Link