Method: licenseAssignments.listForProductAndSku
List all users assigned licenses for a specific product SKU.
HTTP request
GET https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/users
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.
|
Query parameters
Parameters |
customerId |
string
The customer's unique ID as defined in the Admin console, such as C00000000 . If the customer is suspended, the server returns an error.
|
maxResults |
integer (uint32 format)
The maxResults query string determines how many entries are returned on each page of a large response. This is an optional parameter. The value must be a positive number.
|
pageToken |
string
Token to fetch the next page of data. The maxResults query string is related to the pageToken since maxResults determines how many entries are returned on each page. This is an optional query string. If not specified, the server returns the first page.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of LicenseAssignmentList
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.licensing
For more information, see the Authorization guide.
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 2024-08-22 UTC.
[null,null,["Last updated 2024-08-22 UTC."],[[["List all users assigned licenses for a specific product SKU using the provided HTTP request."],["The request requires `productId` and `skuId` as path parameters, identifying the target product and SKU."],["Optional query parameters such as `customerId`, `maxResults`, and `pageToken` allow for filtering and pagination of results."],["Authorization is necessary using the `https://www.googleapis.com/auth/apps.licensing` scope."],["A successful response will return a LicenseAssignmentList containing the user license assignments."]]],["This document details how to retrieve a list of users assigned licenses for a specific product. The core action is a `GET` request to `https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/users`. `productId` and `skuId` are required path parameters, identifying the product and SKU. Optional query parameters include `customerId` to specify the customer, `maxResults` for pagination, and `pageToken` to retrieve subsequent pages. The request body must be empty, and a successful response returns a `LicenseAssignmentList`. This requires the `https://www.googleapis.com/auth/apps.licensing` OAuth scope.\n"]]