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.
Xoá thành viên khỏi thành phần trong Looker Studio.
Để đơn giản là quy trình xoá quyền truy cập của người dùng vào các tài sản, các yêu cầu đúng quy trình
luôn trả về phản hồi 200 OK, ngay cả khi thành viên không hợp lệ hoặc không
thuộc về thành phần Looker Studio.
Yêu cầu
Yêu cầu HTTP
POST https://datastudio.googleapis.com/v1/assets/{assetName}/permissions:revokeAllPermissions
Tham số đường dẫn
Tên thông số
Loại
Mô tả
assetName
string
Mã tên (ID) của 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ý các quyền đối với tài sản và việc uỷ quyề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:
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eRevoke access for multiple users from a Looker Studio asset using the \u003ccode\u003erevokeAllPermissions\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequests to remove users will always return a successful response (\u003ccode\u003e200 OK\u003c/code\u003e), even if the user is invalid or not associated with the asset.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a list of members to remove, specified as \u003ccode\u003euser:\u003c/code\u003e or \u003ccode\u003edomain:\u003c/code\u003e, but owners and the authorized user cannot be removed.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an updated Permissions object reflecting the changes made.\u003c/p\u003e\n"],["\u003cp\u003eThis API call needs authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/datastudio\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Permissions: revokeAllPermissions\n\nRemove members from a Looker Studio asset.\n\nTo simply the process of removing user access to assets, well-formed requests\nalways return a `200 OK` response, even if a member is invalid or does not\nbelong to the Looker Studio asset.\n\nRequest\n-------\n\n### HTTP request\n\n POST https://datastudio.googleapis.com/v1/assets/{assetName}/permissions:revokeAllPermissions\n\n### Path parameters\n\n| Parameter name | Type | Description |\n|----------------|--------|--------------------------------|\n| assetName | string | The name (ID) id of the asset. |\n\n### Authorization\n\nThis request requires the authorized user to have sufficient permissions to\nmanage the assets 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| members | Array\\\u003c[Member](/looker-studio/integrate/api/reference/types#Member)\\\u003e | A list of members to remove. Owners cannot be removed. The authorized user cannot be removed. |\n\n| **Important:** Revoking permissions for an invalid member (e.g. nonexistent Google account) or member that does not belong to the asset will **not** cause the request to fail.\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 removes two members from a Looker Studio asset. \n\n POST https://datastudio.googleapis.com/v1/assets/\u003cvar translate=\"no\"\u003eassetName\u003c/var\u003e/permissions:revokeAllPermissions\n\nRequest body: \n\n {\n \"members\": [\n \"user:gus@gmail.com\",\n \"domain:example.com\"\n ]\n }"]]