Method: userLicense.get
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce lo stato di licenza dell'utente per la sua autorizzazione a utilizzare una determinata app.
Richiesta HTTP
GET https://appsmarket.googleapis.com/appsmarket/v2/userLicense/{applicationId}/{userId}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
applicationId |
string
ID applicazione
|
userId |
string
ID utente
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di UserLicense
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/appsmarketplace.license
Per ulteriori informazioni, consulta la Guida alle autorizzazioni.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves a user's licensing status for a specific application to determine their usage permission.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a \u003ccode\u003eGET\u003c/code\u003e request with the application ID and user ID specified in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/appsmarketplace.license\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003eUserLicense\u003c/code\u003e object containing the user's license information upon successful request.\u003c/p\u003e\n"]]],["This content describes how to retrieve a user's licensing status for an application. A `GET` request is made to `https://appsmarket.googleapis.com/appsmarket/v2/userLicense/{applicationId}/{userId}`, with the `applicationId` and `userId` specified as path parameters. The request body must be empty. A successful response returns a `UserLicense` object. Authorization requires the `https://www.googleapis.com/auth/appsmarketplace.license` OAuth scope.\n"],null,["# Method: userLicense.get\n\nGets the user's licensing status for their permission to use a given app.\n\n### HTTP request\n\n`GET https://appsmarket.googleapis.com/appsmarket/v2/userLicense/{applicationId}/{userId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|-------------------------|\n| `applicationId` | `string` Application Id |\n| `userId` | `string` User Id |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [UserLicense](/workspace/marketplace/reference/rest/v2/userLicense#UserLicense).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/appsmarketplace.license`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]