Skip to content

Get GLicenseAssignment

Spencer Varney edited this page Dec 27, 2016 · 4 revisions

Get-GLicenseAssignment

SYNOPSIS

Get license assignment of a particular product and sku for a user

SYNTAX

one (Default)

Get-GLicenseAssignment [-ProductId] <String> [-SkuId] <String> [-UserId] <String>
 [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]

sku

Get-GLicenseAssignment [-ProductId] <String> [-SkuId] <String> [-CustomerId] <String> [-ListForProductAndSku]
 [[-MaxResults] <Int32>] [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf]
 [-Confirm]

product

Get-GLicenseAssignment [-ProductId] <String> [-ListForProduct] [-CustomerId] <String> [[-MaxResults] <Int32>]
 [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]

DESCRIPTION

Get license assignment of a particular product and sku for a user

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> Get-GLicenseAssignment -ProductId $SomeProductIdString -SkuId $SomeSkuIdString -UserId $SomeUserIdString

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

---------- EXAMPLE 2 ----------

PS C:\> Get-GLicenseAssignment -ListForProduct -ProductId $SomeProductIdString -CustomerId $SomeCustomerIdString

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

---------- EXAMPLE 3 ----------

PS C:\> Get-GLicenseAssignment -ListForProductAndSku -ProductId $SomeProductIdString -SkuId $SomeSkuIdString -CustomerId $SomeCustomerIdString

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-ProductId

Name for product

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SkuId

Name for sku

Type: String
Parameter Sets: one, sku
Aliases: 

Required: True
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-UserId

email id or unique Id of the user

Type: String
Parameter Sets: one
Aliases: 

Required: True
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ListForProduct

List license assignments for given product of the customer.

Type: SwitchParameter
Parameter Sets: product
Aliases: 

Required: True
Position: 0
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-CustomerId

CustomerId represents the customer for whom licenseassignments are queried

Type: String
Parameter Sets: sku, product
Aliases: 

Required: True
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ListForProductAndSku

List license assignments for given product and sku of the customer.

Type: SwitchParameter
Parameter Sets: sku
Aliases: 

Required: True
Position: 0
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-MaxResults

Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.

Type: Int32
Parameter Sets: sku, product
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-StandardQueryParams

A Standard Query Parameters Object.

Type: StandardQueryParameters
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-GAuthId

The GAuthId representing the gShell auth credentials this cmdlet should use to run.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

System.String

Name for product

System.String

Name for sku

System.String

email id or unique Id of the user

System.String

CustomerId represents the customer for whom licenseassignments are queried

System.Int32

Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.

OUTPUTS

NOTES

Part of the gShell Project, relating to the Google Licensing API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally