Share via


Get-PartnerCustomerUserLicense

Gets a list of licenses assigned to a user within a customer account.

Syntax

Get-PartnerCustomerUserLicense
   -CustomerId <String>
   [-LicenseGroup <LicenseGroupId[]>]
   -UserId <String>
   [<CommonParameters>]

Description

Gets a list of licenses assigned to a user within a customer account.

Examples

Example 1

PS C:\> Get-PartnerCustomerUserLicense -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

Gets a list of licenses assigned to a user within a customer account.

Example 2

PS C:\> Get-PartnerCustomerUserLicense -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LicenseGroup Group1 -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

Gets a list of Azure Active Directory (AAD) licenses assigned to a user within a customer account.

Example 3

PS C:\> Get-PartnerCustomerUserLicense -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LicenseGroup Group2 -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

Gets a list of Minecraft licenses assigned to a user within a customer account.

Example 4

PS C:\> Get-PartnerCustomerUserLicense -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LicenseGroup Group1 -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

Gets a list of Azure Active Directory (AAD) and Minecraft licenses assigned to a user within a customer account.

Parameters

-CustomerId

The identifier for the customer.

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

-LicenseGroup

The identifier for the license group.

Type:LicenseGroupId[]
Accepted values:Group1, Group2
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UserId

The identifier for the user.

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

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Licenses.PSLicense