Quyền: bản vá
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cập nhật quyền cho một thành phần trong Looker Studio.
Yêu cầu
Yêu cầu HTTP
PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions
Tham số đường dẫn
Tên thông số |
Loại |
Mô tả |
assetName |
string |
Tên (ID) nội dung. |
Ủy quyền
Yêu cầu này đòi hỏi người dùng được uỷ quyền có đủ quyền để
quản lý quyền và uỷ quyền đối với tài sản trong phạm vi sau:
Phạm vi |
https://www.googleapis.com/auth/datastudio |
Nội dung yêu cầu
Trong nội dung yêu cầu, hãy cung cấp các thuộc tính sau:
Tên tài sản |
Loại |
Mô tả |
quyền
|
Quyền truy cập
|
Đối tượng quyền được cập nhật.
Không thể cập nhật vai trò OWNER . |
Phản hồi
Nếu thành công, phương thức này sẽ trả về đối tượng Permissions đã được cập nhật.
Ví dụ:
Sau đây là các quyền đối với thành phần trong Looker Studio.
PATCH https://datastudio.googleapis.com/v1/assets/assetName/permissions
Nội dung yêu cầu:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:jen@gmail.com"
]
},
"VIEWER": {
"members": [
"user:gus@gmail.com"
]
}
}
}
}
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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 }"]]