Get-AzureADDeviceRegisteredUser

Gets a registered user.

Syntax

Get-AzureADDeviceRegisteredUser
   -ObjectId <String>
   [-All <Boolean>]
   [-Top <Int32>]
   [<CommonParameters>]

Description

The Get-AzureADDeviceRegisteredUser cmdlet gets a registered user for an Azure Active Directory device.

Examples

Example 1: Retrieve the registered users of a device

PS C:\> $DevId = (Get-AzureADDevice -Top 1).ObjectId
PS C:\> Get-AzureADDeviceRegisteredUser -ObjectId $DevId

The first command gets the object ID of a device by using the Get-AzureADDevice (./Get-AzureADDevice.md)cmdlet, and then stores it in the $DevId variable. The second command gets the registered users of the device in $DevId.

Parameters

-All

If true, return all registered users. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

Specifies an object ID.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Top

@{Text=}

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Notes

See the migration guide for Get-AzureADDeviceRegisteredUser to the Microsoft Graph PowerShell.