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
ตัวระบุที่ไม่ซ้ำกันของผลิตภัณฑ์ ดูข้อมูลเพิ่มเติมเกี่ยวกับผลิตภัณฑ์ใน API เวอร์ชันนี้ได้ที่หัวข้อรหัสผลิตภัณฑ์และ SKU
|
userId |
string
อีเมลหลักปัจจุบันของผู้ใช้ หากอีเมลของผู้ใช้มีการเปลี่ยนแปลง ให้ใช้อีเมลใหม่ในคำขอ API เนื่องจาก userId อาจมีการเปลี่ยนแปลง ดังนั้นอย่าใช้ค่า userId เป็นคีย์สำหรับข้อมูลที่เก็บถาวร คีย์นี้อาจใช้งานไม่ได้หากอีเมลของผู้ใช้ปัจจุบันมีการเปลี่ยนแปลง หากมีการระงับ userId สถานะใบอนุญาตจะเปลี่ยนแปลง
|
selfLink |
string
ลิงก์ไปยังหน้านี้
|
skuId |
string
ตัวระบุที่ไม่ซ้ำกันของ SKU ผลิตภัณฑ์ ดูข้อมูลเพิ่มเติมเกี่ยวกับ SKU ที่พร้อมใช้งานใน API เวอร์ชันนี้ได้ที่ผลิตภัณฑ์และ SKU
|
skuName |
string
ชื่อที่แสดงของ SKU ของผลิตภัณฑ์
|
productName |
string
ชื่อที่แสดงของผลิตภัณฑ์
|
เมธอด |
|
เพิกถอนใบอนุญาต |
|
ดูใบอนุญาตของผู้ใช้ที่เฉพาะเจาะจงตาม SKU ของผลิตภัณฑ์ |
|
มอบหมายใบอนุญาต |
|
แสดงรายการใบอนุญาตที่มอบหมายให้กับผู้ใช้ทั้งหมดสำหรับ SKU ผลิตภัณฑ์ที่เฉพาะเจาะจง |
|
แสดงรายการใบอนุญาตที่มอบหมายให้กับผู้ใช้ทั้งหมดสำหรับ SKU ผลิตภัณฑ์ที่เฉพาะเจาะจง |
|
มอบหมาย SKU ผลิตภัณฑ์ของผู้ใช้ใหม่เป็น SKU อื่นในผลิตภัณฑ์เดียวกัน |
|
มอบหมาย SKU ผลิตภัณฑ์ของผู้ใช้ใหม่เป็น SKU อื่นในผลิตภัณฑ์เดียวกัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],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. |"]]