您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Get-AzureADUserLicenseDetail

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