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。
|
id |
string
使用者授權的 ID。
|
userId |
string
使用者的電子郵件地址。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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. |"]]