AI-generated Key Takeaways
-
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/datastudioscope 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.
Adds members to a Looker Studio asset.
Request
HTTP request
POST https://datastudio.googleapis.com/v1/assets/{assetName}/permissions:addMembers
Path parameters
| Parameter name | Type | Description |
|---|---|---|
|
assetName
|
string | The name (ID) of the asset. |
Authorization
This request requires the authorized user to have sufficient permissions to add members to the asset and authorization with the following scope:
| Scope |
|---|
https://www.googleapis.com/auth/datastudio
|
Request body
In the request body, supply the following properties:
| Property name | Type | Description |
|---|---|---|
|
role
|
Role | The role to add members to. Members cannot be added to the OWNER
role. |
|
members
|
Array< Member > | The members to add. |
Response
If successful, this method returns the updated Permissions object.
Example
The following adds two viewer members to a Looker Studio asset.
POST https://datastudio.googleapis.com/v1/assets/ assetName
/permissions:addMembers
Request body:
{
"role"
:
"VIEWER"
,
"members"
:
[
"user:gus@gmail.com"
,
"user:jen@gmail.com"
]
}

