# REST Resource: licenseAssignments

- [Resource: LicenseAssignment](https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment)
  - [JSON representation](https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments#METHODS_SUMMARY)

## 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](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |
| `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. |
| `selfLink` | `string` Link to this page. |
| `skuId` | `string` A product SKU's unique identifier. For more information about available SKUs in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |
| `skuName` | `string` Display Name of the sku of the product. |
| `productName` | `string` Display Name of the product. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/delete` | Revoke a license. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/get` | Get a specific user's license by product SKU. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/insert` | Assign a license. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProduct` | List all users assigned licenses for a specific product SKU. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProductAndSku` | List all users assigned licenses for a specific product SKU. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/patch` | Reassign a user's product SKU with a different SKU in the same product. |
| ### `https://developers.google.com/workspace/admin/licensing/reference/rest/v1/licenseAssignments/update` | Reassign a user's product SKU with a different SKU in the same product. |