Entitlements: list
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirtilen kullanıcı için tüm yararlanma haklarını listeler. Yalnızca kimlik ayarlanır.
İstek
HTTP isteği
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/entitlements
Parametreler
Parametre adı |
Değer |
Açıklama |
Yol parametreleri |
enterpriseId |
string |
Kuruluşun kimliği.
|
userId |
string |
Kullanıcının kimliği.
|
Yetkilendirme
Bu istek, aşağıdaki kapsamla yetkilendirme gerektiriyor:
Kapsam |
https://www.googleapis.com/auth/androidenterprise |
Daha fazla bilgi edinmek için kimlik doğrulama ve yetkilendirme sayfasına göz atın.
İstek içeriği
Bu yöntemle istek gövdesi sağlamayın.
Yanıt
Başarılı olursa bu yöntem, aşağıdaki yapıya sahip bir yanıt gövdesi döndürür:
{
"kind": "androidenterprise#entitlementsListResponse",
"entitlement": [
entitlements Resource
]
}
Mülk adı |
Değer |
Açıklama |
Notlar |
entitlement[] |
list |
Bir kullanıcının bir üründen (ör. uygulama) yararlanma hakkı. Örneğin, kullanıcıların yüklediği ücretsiz bir uygulama veya lisans aldıkları ücretli bir uygulama. |
|
kind |
string |
Bunun ne tür bir kaynak olduğunu tanımlar. Değer: sabit "androidenterprise#entitlementsListResponse" dizesi. |
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-14 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-14 UTC."],[[["\u003cp\u003eThis deprecated method lists all entitlements, providing only the ID, for a specified user within an enterprise before September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eIt requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope and involves a GET request to a specific endpoint with enterprise and user IDs as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes an array of entitlements for the user, along with a kind identifier for the response type.\u003c/p\u003e\n"],["\u003cp\u003eNew integrations should refer to recommended alternatives as this method will become inaccessible after the specified date.\u003c/p\u003e\n"]]],[],null,["# Entitlements: list\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative_2). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nLists all entitlements for the specified user. Only the ID is set.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/entitlements\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `userId` | `string` | The ID of the user. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"kind\": \"androidenterprise#entitlementsListResponse\",\n \"entitlement\": [\n entitlements Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `entitlement[]` | `list` | An entitlement of a user to a product (e.g. an app). For example, a free app that they have installed, or a paid app that they have been allocated a license to. | |\n| `kind` | `string` | Identifies what kind of resource this is. Value: the fixed string `\"androidenterprise#entitlementsListResponse\"`. | |"]]