Επεξεργασία

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


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 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

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.