Get-AzureADObjectByObjectId
This article provides migration details from Get-AzureADObjectByObjectId command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Get-AzureADObjectByObjectId
- Azure AD Module: AzureAD
- Microsoft Graph Command: Get-MgDirectoryObjectById (Community Examples)
- Graph Module: Microsoft.Graph.DirectoryObjects
- Graph Endpoint: POST /directoryObjects/getByIds
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Directory.Read.All | Not available. |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Directory.Read.All | Not available. |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectIds | ids, types e.g. "user","group","device" |