REST Resource: userLicense
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: UserLicense
การแสดง JSON |
{
"kind": string,
"enabled": boolean,
"state": string,
"editionId": string,
"customerId": string,
"applicationId": string,
"id": string,
"userId": string
} |
ช่อง |
kind |
string
ประเภทของทรัพยากร API ซึ่งจะเป็น appsmarket#userLicense เสมอ
|
enabled |
boolean
ผู้ดูแลระบบโดเมนได้เปิดใช้งานแอปพลิเคชันสำหรับโดเมนนี้
|
state |
string
สถานะการออกใบอนุญาตของผู้ใช้ ข้อใดข้อหนึ่ง:
ACTIVE : ผู้ใช้มีใบอนุญาตที่ถูกต้องและควรได้รับอนุญาตให้ใช้แอปพลิเคชัน
UNLICENSED : ผู้ดูแลระบบโดเมนของผู้ใช้รายนี้ไม่เคยมอบหมายสิทธิ์สำหรับแอปพลิเคชันให้กับผู้ใช้รายนี้
EXPIRED : ผู้ดูแลระบบกำหนดที่นั่งให้กับผู้ใช้รายนี้ แต่ใบอนุญาตหมดอายุแล้ว
|
editionId (deprecated) |
string
(เลิกใช้งาน)
|
customerId |
string
ชื่อโดเมนของผู้ใช้
|
applicationId |
string
รหัสของแอปพลิเคชันที่เกี่ยวข้องกับการค้นหาใบอนุญาต
|
id |
string
รหัสใบอนุญาตของผู้ใช้
|
userId |
string
อีเมลของผู้ใช้
|
เมธอด |
|
ดูสถานะการให้ใบอนุญาตของผู้ใช้สำหรับการใช้แอปที่กำหนด |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThe UserLicense resource represents a user's license status for a specific application within a Google Workspace domain.\u003c/p\u003e\n"],["\u003cp\u003eIt provides information about the user's license status, including whether it's active, unlicensed, or expired.\u003c/p\u003e\n"],["\u003cp\u003eThe resource includes details such as the user's email, domain, application ID, and license ID.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a user's license information using the \u003ccode\u003eget\u003c/code\u003e method of the UserLicense API.\u003c/p\u003e\n"]]],["The `UserLicense` resource provides information about a user's access to an application. Key data includes `kind` (resource type), `enabled` (domain-level activation), and `state` (user's license status: `ACTIVE`, `UNLICENSED`, `EXPIRED`). Additional fields are `customerId` (domain), `applicationId` (app ID), `id` (license ID), and `userId` (user's email). The `editionId` field is deprecated. The `get` method retrieves a user's licensing status for a specific app.\n"],null,["# REST Resource: userLicense\n\nResource: UserLicense\n---------------------\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"enabled\": boolean, \"state\": string, \"editionId\": string, \"customerId\": string, \"applicationId\": string, \"id\": string, \"userId\": string } ``` |\n\n| Fields ||\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` The type of API resource. This is always appsmarket#userLicense. |\n| `enabled` | `boolean` The domain administrator has activated the application for this domain. |\n| `state` | `string` The user's licensing status. One of: - `ACTIVE`: The user has a valid license and should be permitted to use the application. - `UNLICENSED`: The administrator of this user's domain never assigned a seat for the application to this user. - `EXPIRED`: The administrator assigned a seat to this user, but the license is expired. |\n| `editionId` **(deprecated)** | `string` | This item is deprecated! (Deprecated) |\n| `customerId` | `string` The domain name of the user. |\n| `applicationId` | `string` The ID of the application corresponding to the license query. |\n| `id` | `string` The ID of user license. |\n| `userId` | `string` The email address of the user. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------|---------------------------------------------------------------------------|\n| ### [get](/workspace/marketplace/reference/rest/v2/userLicense/get) | Gets the user's licensing status for their permission to use a given app. |"]]