Get-AzureADUser
This article provides migration details from Get-AzureADUser command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Get-AzureADUser
- Azure AD Module: AzureAD
- Microsoft Graph Command: Get-MgUser (Community Examples)
- Graph Module: Microsoft.Graph.Users
- Graph Endpoint: GET /users/{user-id}
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | User.Read | User.ReadWrite, User.ReadBasic.All, User.Read.All, User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All |
Delegated (personal Microsoft account) | User.Read | User.ReadWrite |
Application | User.Read.All | User.ReadWrite.All, Directory.Read.All, Directory.ReadWrite.All |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
All | All |
Filter | Filter |
ObjectId | Id |
SearchString | NA |
Top | Top |