Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides migration details from Get-AzureADUserLicenseDetail command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Get-AzureADUserLicenseDetail
- Azure AD Module: AzureAD
- Microsoft Graph Command: Get-MgUserLicenseDetail (Community Examples)
- Graph Module: Microsoft.Graph.Users
- Graph Endpoint: GET /users/{id}/licenseDetails
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | LicenseAssignment.Read.All | Directory.Read.All, Directory.ReadWrite.All, User.Read, User.Read.All, User.ReadWrite.All |
Delegated (personal Microsoft account) | User.Read | Not available. |
Application | Not supported. | Not supported. |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | UserId |