Get-AzureADObjectByObjectId

Retrieves the object(s) specified by the objectIds parameter

Syntax

Get-AzureADObjectByObjectId
   -ObjectIds <System.Collections.Generic.List`1[System.String]>
   [-Types <System.Collections.Generic.List`1[System.String]>]
   [<CommonParameters>]

Description

Retrieves the object(s) specified by the objectIds parameter

Examples

Example 1

PS C:\WINDOWS\system32> Get-AzureADObjectByObjectId -ObjectIds 2af3478a-27da-4837-a387-b22b3fb236a8, c4fdf87f-f68e-4859-8bcf-36579b66005e

ObjectId                             AppId                                DisplayName
--------                             -----                                -----------
c4fdf87f-f68e-4859-8bcf-36579b66005e 71715b24-8cdd-432b-a138-86e8ad179274 Woodgrove HR App

DeletionTimeStamp                   :
ObjectId                            : 2af3478a-27da-4837-a387-b22b3fb236a8
ObjectType                          : DeviceConfiguration
PublicIssuerCertificates            : {}
CloudPublicIssuerCertificates       : {}
RegistrationQuota                   : 20
MaximumRegistrationInactivityPeriod : 90

In this example two objects are retrieved (a DeviceConfiguration object and an Application object) as specified by the value of the ObjectIds parameter

Parameters

-ObjectIds

One or more object ID's, separated by commas, for which the objects are retrieved

Type:List<T>[String]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Types

Specifies the type of objects that the cmdlet returns

Type:List<T>[String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object

Notes

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