Επεξεργασία

Κοινή χρήση μέσω


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

Parameters

-ObjectId

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

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

Object

Notes

See the migration guide for Get-AzureADUserLicenseDetail to the Microsoft Graph PowerShell.