Permissions: addMembers

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"
  ]
}