Get-AzureADUserLicenseDetail
Retrieves license details for a user
Syntax
Default (Default)
Get-AzureADUserLicenseDetail
-ObjectId <String>
[<CommonParameters>]
Description
This cmdlet retrieves license details for a user
Examples
Example 1
PS C:\WINDOWS\system32> Get-AzureADUserLicenseDetail -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectId ServicePlans
-------- ------------
Hv-1hQIEDECePA-ellMl0cjsRfKvdY5Pth8n2BFN5fM {class ServicePlanInfo {...
Hv-1hQIEDECePA-ellMl0QQrjQe98RFBu9S0sbNUzvQ {class ServicePlanInfo {...
This example retrieves the license details of the user specified through the ObjectId parameter
Parameters
-ObjectId
The object ID of the user for which the license details are retrieved
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
Object
Notes
See the migration guide for Get-AzureADUserLicenseDetail to the Microsoft Graph PowerShell.