In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzureADObjectByObjectId PowerShell command with examples.
Table of Contents
Get-AzureADObjectByObjectId
This command can help you to get the details of the objects based on the specified Object IDs.
Syntax
Below is the syntax of the Get-AzureADObjectByObjectId PowerShell command.
Get-AzureADObjectByObjectId
-ObjectIds <System.Collections.Generic.List`1[System.String]>
Let’s discuss an example on how to use the Get-AzureADObjectByObjectId PowerShell command.
Example
You can execute the below PowerShell command to get the details of the Specified Object IDs.
Connect-AzureAD -TenantId 5d9d690a-0310-474d-ae8b-42df2d549228
Get-AzureADObjectByObjectId -ObjectIds 085b7a57-e110-45b8-ace3-c143404d9b5b, 11906a6b-b898-417e-89a9-b268989b6212
After executing the above Azure PowerShell command, I got the details of the specified Object IDs as expected. You can check out the below screenshots for your reference.


Get-AzureADObjectByObjectId – Video Tutorial
You may also like following the below articles
Final Thoughts
In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzureADObjectByObjectId PowerShell command with an example of how to use this PowerShell command. Thanks for reading this article !!!