REST Resource: licenseAssignments
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:LicenseAssignment
JSON 表示法 |
{
"kind": string,
"etags": string,
"productId": string,
"userId": string,
"selfLink": string,
"skuId": string,
"skuName": string,
"productName": string
} |
欄位 |
kind |
string
將資源識別為 LicenseAssignment,即 licensing#licenseAssignment 。
|
etags |
string
資源的 ETag。
|
productId |
string
產品的專屬 ID。如要進一步瞭解這個版本的 API 中的產品,請參閱「產品和 SKU ID」。
|
userId |
string
使用者目前的主要電子郵件地址。如果使用者的電子郵件地址有所變更,請在 API 要求中使用新的電子郵件地址。 由於 userId 可能會變更,請勿將 userId 值用作持續性資料的索引鍵。如果目前使用者的電子郵件地址有所變更,這個金鑰可能會失效。 如果 userId 遭到停權,授權狀態就會變更。
|
selfLink |
string
這個頁面的連結。
|
skuId |
string
產品 SKU 的專屬 ID。如要進一步瞭解這個 API 版本中可用的 SKU,請參閱「產品和 SKU」。
|
skuName |
string
產品 SKU 的顯示名稱。
|
productName |
string
產品的顯示名稱。
|
方法 |
|
撤銷授權。 |
|
根據產品 SKU 取得特定使用者的授權。 |
|
指派授權。 |
|
列出特定產品 SKU 指派授權的所有使用者。 |
|
列出特定產品 SKU 指派授權的所有使用者。 |
|
將使用者的產品 SKU 重新指派給同一產品中的其他 SKU。 |
|
將使用者的產品 SKU 重新指派給同一產品中的其他 SKU。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# REST Resource: licenseAssignments\n\n- [Resource: LicenseAssignment](#LicenseAssignment)\n - [JSON representation](#LicenseAssignment.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LicenseAssignment\n---------------------------\n\nRepresentation of a license assignment.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etags\": string, \"productId\": string, \"userId\": string, \"selfLink\": string, \"skuId\": string, \"skuName\": string, \"productName\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the resource as a LicenseAssignment, which is `licensing#licenseAssignment`. |\n| `etags` | `string` ETag of the resource. |\n| `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). |\n| `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. |\n| `selfLink` | `string` Link to this page. |\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| `skuName` | `string` Display Name of the sku of the product. |\n| `productName` | `string` Display Name of the product. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| ### [delete](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/delete) | Revoke a license. |\n| ### [get](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/get) | Get a specific user's license by product SKU. |\n| ### [insert](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/insert) | Assign a license. |\n| ### [listForProduct](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProduct) | List all users assigned licenses for a specific product SKU. |\n| ### [listForProductAndSku](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/listForProductAndSku) | List all users assigned licenses for a specific product SKU. |\n| ### [patch](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/patch) | Reassign a user's product SKU with a different SKU in the same product. |\n| ### [update](/workspace/admin/licensing/reference/rest/v1/licenseAssignments/update) | Reassign a user's product SKU with a different SKU in the same product. |"]]