Get Basic Information For Azure AD Object Ids Using PowerShell
Quick summary
1
Get-AzureADObjectByObjectId -ObjectIds 00000000-0000-0000-0000-000000000000
Comma delimit for multiples.
Details
If you’re working with Azure you may find yourself needing to get information about one or many Azure AD object ids. Here’s how to get basic information without having to specify the type of the entity:
Install Azure Active Directory PowerShell for Graph if it’s not already installed.
Install-Module AzureAD
uses the PowerShell Gallery to install the AzureAD module.Connect via
Connect-AzureAD
. Note: The terminal in Visual Studio Code may have an issue here, if it’s not loading the login screen try launching standalone PowerShell.Use
Get-AzureADObjectByObjectId -ObjectIds 00000000-0000-0000-0000-000000000000
where00000000-0000-0000-0000-000000000000
is an example object id (replace it with your own, to add multiples delimit with a comma like-ObjectIds abc,def
)
Hope that helps!