权限:addMembers
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
向 Looker Studio 资源添加成员。
请求
HTTP 请求
POST https://datastudio.googleapis.com/v1/assets/{assetName}/permissions:addMembers
路径参数
参数名称 |
类型 |
说明 |
assetName |
字符串 |
资产的名称 (ID)。 |
授权
此请求要求授权用户拥有足够的权限来添加
成员添加到资产和授权,范围如下:
范围 |
https://www.googleapis.com/auth/datastudio |
请求正文
在请求正文中提供以下属性:
属性名称 |
类型 |
说明 |
角色
|
角色
|
要将成员添加到的角色。 成员
不能添加到 OWNER 角色中。 |
成员 |
数组<成员> |
要添加的成员。 |
响应
如果成功,此方法将返回更新后的权限对象。
示例
以下命令会将两个查看者成员添加到一个 Looker Studio 资源中。
POST https://datastudio.googleapis.com/v1/assets/assetName/permissions:addMembers
请求正文:
{
"role": "VIEWER",
"members": [
"user:gus@gmail.com",
"user:jen@gmail.com"
]
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","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):2025-07-25。"],[[["Adds members with specified roles (excluding OWNER) to a Looker Studio asset using the asset's name (ID)."],["Requires authorization with the `https://www.googleapis.com/auth/datastudio` scope and sufficient permissions to add members."],["The request body specifies the desired role and a list of members to add (using their email addresses)."],["Upon successful execution, the updated Permissions object for the asset is returned."]]],[]]