Permissions: patch

  • 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.

Update permissions for a Looker Studio asset.

Request

HTTP request

 PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions 

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 manage asset permissions 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
permissions
Permissions The updated permissions object.
The OWNER role cannot be updated.

Response

If successful, this method returns the updated Permissions object.

Example

The following updates the permissions for a Looker Studio asset.

 PATCH https://datastudio.googleapis.com/v1/assets/ assetName 
/permissions 

Request body:

  { 
  
 "permissions" 
 : 
  
 { 
  
 "permissions" 
 : 
  
 { 
  
 "OWNER" 
 : 
  
 { 
  
 "members" 
 : 
  
 [ 
  
 "user:jen@gmail.com" 
  
 ] 
  
 }, 
  
 "VIEWER" 
 : 
  
 { 
  
 "members" 
 : 
  
 [ 
  
 "user:gus@gmail.com" 
  
 ] 
  
 } 
  
 } 
  
 } 
 } 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: