Method: licenseAssignments.insert
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
productId |
string
A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.
|
skuId |
string
A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
|
Request body
The request body contains an instance of LicenseAssignmentInsert
.
Response body
If successful, the response body contains a newly created instance of LicenseAssignment
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.licensing
For more information, see the Authorization guide.
LicenseAssignmentInsert
Representation of a license assignment.
JSON representation |
{
"userId": string
} |
Fields |
userId |
string
Email id of the user
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-25 UTC.
[null,null,["Last updated 2025-03-25 UTC."],[],[],null,["# Method: licenseAssignments.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [LicenseAssignmentInsert](#LicenseAssignmentInsert)\n - [JSON representation](#LicenseAssignmentInsert.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nAssign a license.\n\n### HTTP request\n\n`POST https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `productId` | `string` A product's unique identifier. For more information about products in this version of the API, see [Products and SKUs](https://developers.google.com/workspace/admin/licensing/v1/how-tos/products). |\n| `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). |\n\n### Request body\n\nThe request body contains an instance of [LicenseAssignmentInsert](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/insert#LicenseAssignmentInsert).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [LicenseAssignment](/workspace/admin/licensing/reference/rest/v1/licenseAssignments#LicenseAssignment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.licensing`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nLicenseAssignmentInsert\n-----------------------\n\nRepresentation of a license assignment.\n\n| JSON representation |\n|------------------------------|\n| ``` { \"userId\": string } ``` |\n\n| Fields ||\n|----------|-------------------------------|\n| `userId` | `string` Email id of the user |"]]