权限:patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新 Looker Studio 资源的权限。
请求
HTTP 请求
PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions
路径参数
参数名称 |
类型 |
说明 |
assetName |
字符串 |
资产的名称 (ID)。 |
授权
此请求要求授权用户拥有足够的权限,
在以下范围内管理资产权限和授权:
范围 |
https://www.googleapis.com/auth/datastudio |
请求正文
在请求正文中提供以下属性:
属性名称 |
类型 |
说明 |
权限
|
权限
|
更新后的权限对象。
无法更新“OWNER ”角色。 |
响应
如果成功,此方法将返回更新后的权限对象。
示例
以下操作会更新 Looker Studio 资源的权限。
PATCH https://datastudio.googleapis.com/v1/assets/assetName/permissions
请求正文:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:jen@gmail.com"
]
},
"VIEWER": {
"members": [
"user:gus@gmail.com"
]
}
}
}
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-09-12。"],[[["This document outlines how to update permissions for a Looker Studio asset using the `PATCH` method and provides details about the required request parameters and authorization scope."],["The 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."],["A successful request will return the updated Permissions object, confirming the changes made to the asset's access control."]]],[]]