Get-PartnerCustomerUserLicense

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

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LicenseGroup

The identifier for the license group.

Parameter properties

Type:

LicenseGroupId[]

Default value:None
Accepted values:Group1, Group2
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserId

The identifier for the user.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

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