REST Resource: licenseAssignments

Resource: LicenseAssignment

Representation of a license assignment.

JSON representation
{
  "kind": string,
  "etags": string,
  "productId": string,
  "userId": string,
  "selfLink": string,
  "skuId": string,
  "skuName": string,
  "productName": string
}
Fields
kind

string

Identifies the resource as a LicenseAssignment, which is licensing#licenseAssignment.

etags

string

ETag of the resource.

productId

string

A product's unique identifier. For more information about products in this version of the API, see Product and SKU IDs.

userId

string

The user's current primary email address. If the user's email address changes, use the new email address in your API requests.
Since a userId is subject to change, do not use a userId value as a key for persistent data. This key could break if the current user's email address changes.
If the userId is suspended, the license status changes.

skuId

string

A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.

skuName

string

Display Name of the sku of the product.

productName

string

Display Name of the product.

Methods

delete

Revoke a license.

get

Get a specific user's license by product SKU.

insert

Assign a license.

listForProduct

List all users assigned licenses for a specific product SKU.

listForProductAndSku

List all users assigned licenses for a specific product SKU.

patch

Reassign a user's product SKU with a different SKU in the same product.

update

Reassign a user's product SKU with a different SKU in the same product.