- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - LicenseAssignmentInsert
 - Try it!
 
Assign a license.
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 | 
                
                   
 A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.  | 
              
skuId | 
                
                   
 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 | 
                
                   
 Email id of the user  |