Get-​Azure​AD​User​License​Detail

Retrieves license details for a user

Syntax

Get-AzureADUserLicenseDetail
   -ObjectId <String>
   [<CommonParameters>]

Description

THis cmdlet retrieves license details for a user

Examples

Example 1

PS C:\WINDOWS\system32> Get-AzureADUserLicenseDetail -ObjectId df19e8e6-2ad7-453e-87f5-037f6529ae16

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

Required Parameters

-ObjectId

The object ID of the user for which the license details are retrieved

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Object