İzinler: yama
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Looker Studio öğesi için izinleri güncelleyin.
İstek
HTTP isteği
PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions
Yol parametreleri
Parametre adı |
Tür |
Açıklama |
assetName |
dize |
Öğenin adı (kimlik). |
Yetkilendirme
Bu istek, yetkili kullanıcının aşağıdaki işlemler için yeterli izinlere sahip olmasını gerektiriyor:
öğe izinlerini ve yetkilendirmesini aşağıdaki kapsamla yönetebilirsiniz:
Kapsam |
https://www.googleapis.com/auth/datastudio |
İstek içeriği
İstek gövdesinde, aşağıdaki özellikleri sağlayın:
Mülk adı |
Tür |
Açıklama |
izinler
|
İzinler
|
Güncellenen izinler nesnesi.
OWNER rolü güncellenemiyor. |
Yanıt
Başarılı olursa bu yöntem güncellenen Permissions nesnesini döndürür.
Örnek
Aşağıda, Looker Studio öğelerinin izinleri güncellenir.
PATCH https://datastudio.googleapis.com/v1/assets/assetName/permissions
İstek içeriği:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:jen@gmail.com"
]
},
"VIEWER": {
"members": [
"user:gus@gmail.com"
]
}
}
}
}
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: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003eThis document outlines how to update permissions for a Looker Studio asset using the \u003ccode\u003ePATCH\u003c/code\u003e method and provides details about the required request parameters and authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should include the updated permissions object, specifying roles (like OWNER, VIEWER) and their corresponding members, but note that the OWNER role cannot be modified.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return the updated Permissions object, confirming the changes made to the asset's access control.\u003c/p\u003e\n"]]],[],null,["# Permissions: patch\n\nUpdate permissions for a Looker Studio asset.\n\nRequest\n-------\n\n### HTTP request\n\n PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions\n\n### Path parameters\n\n| Parameter name | Type | Description |\n|----------------|--------|-----------------------------|\n| assetName | string | The name (ID) of the asset. |\n\n### Authorization\n\nThis request requires the authorized user to have sufficient permissions to\nmanage asset permissions and authorization with the following scope:\n\n| Scope |\n|----------------------------------------------|\n| `https://www.googleapis.com/auth/datastudio` |\n\n### Request body\n\nIn the request body, supply the following properties:\n\n| Property name | Type | Description |\n|---------------|-------------------------------------------------------------------------|---------------------------------------------------------------------|\n| permissions | [Permissions](/looker-studio/integrate/api/reference/types#Permissions) | The updated permissions object. The `OWNER` role cannot be updated. |\n\nResponse\n--------\n\nIf successful, this method returns the updated [Permissions](/looker-studio/integrate/api/reference/types#Permissions) object.\n\nExample\n-------\n\nThe following updates the permissions for a Looker Studio asset. \n\n PATCH https://datastudio.googleapis.com/v1/assets/\u003cvar translate=\"no\"\u003eassetName\u003c/var\u003e/permissions\n\nRequest body: \n\n {\n \"permissions\": {\n \"permissions\": {\n \"OWNER\": {\n \"members\": [\n \"user:jen@gmail.com\"\n ]\n },\n \"VIEWER\": {\n \"members\": [\n \"user:gus@gmail.com\"\n ]\n }\n }\n }\n }"]]