REST Resource: userLicense
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ressource: UserLicense
JSON-Darstellung |
{
"kind": string,
"enabled": boolean,
"state": string,
"editionId": string,
"customerId": string,
"applicationId": string,
"id": string,
"userId": string
} |
Felder |
kind |
string
Der Typ der API-Ressource. Dies ist immer „appsmarket#userLicense“.
|
enabled |
boolean
Der Domainadministrator hat die Anwendung für diese Domain aktiviert.
|
state |
string
Der Lizenzstatus des Nutzers. Eine der Folgenden:
ACTIVE : Der Nutzer hat eine gültige Lizenz und muss berechtigt sein, die Anwendung zu verwenden.
UNLICENSED : Der Administrator der Domain dieses Nutzers hat diesem Nutzer für die Anwendung nie eine Lizenz zugewiesen.
EXPIRED : Der Administrator hat diesem Nutzer eine Lizenz zugewiesen, aber die Lizenz ist abgelaufen.
|
editionId (deprecated) |
string
(verworfen)
|
customerId |
string
Der Domainname des Nutzers.
|
applicationId |
string
Die ID der Anwendung, die der Lizenzabfrage entspricht.
|
id |
string
Die ID der Nutzerlizenz.
|
userId |
string
Die E-Mail-Adresse des Nutzers.
|
Methoden |
|
Ruft den Lizenzstatus des Nutzers für seine Berechtigung zur Verwendung einer bestimmten App ab. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]