Method: licenseAssignments.listForProduct
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/users
网址采用 gRPC 转码语法。
路径参数
参数 |
productId |
string
商品的唯一标识符。如需详细了解此版本 API 中的商品,请参阅商品和 SKU。
|
查询参数
参数 |
customerId |
string
客户在管理控制台中定义的唯一 ID,例如 C00000000 。如果客户账号已被中止,服务器会返回错误。
|
maxResults |
integer (uint32 format)
maxResults 查询字符串决定了大型响应的每个页面上返回的条目数量。这是一个可选参数。该值必须是正数。
|
pageToken |
string
用于提取下一页数据的令牌。maxResults 查询字符串与 pageToken 相关,因为 maxResults 决定了每个页面上返回的条目数量。这是一个可选查询字符串。如果未指定,服务器会返回第一页。
|
响应正文
如果成功,则响应正文包含一个 LicenseAssignmentList
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/apps.licensing
如需了解详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method: licenseAssignments.listForProduct\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nList all users assigned licenses for a specific product SKU.\n\n### HTTP request\n\n`GET https://licensing.googleapis.com/apps/licensing/v1/product/{productId}/users`\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\n### Query parameters\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `maxResults` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` 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. |\n| `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. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [LicenseAssignmentList](/workspace/admin/licensing/reference/rest/v1/LicenseAssignmentList).\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)."]]