Set Resource Permission
  • 02 Oct 2023
  • 1 Minute to read
  • Dark
    Light

Set Resource Permission

  • Dark
    Light

Article summary

Step Details
Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Google Drive

The Set Resource Permission step modifies and manages the permissions (access rights) associated with a specific file or folder stored in a user's Google Drive account. This step is particularly useful when you need to grant or revoke access to specific users or groups.

Prerequisites 

This step requires the Google Drive module to be installed before it will be available in the toolbox. 


Properties

Inputs

PropertyDescriptionData Type
CredentialThe authentication credentials or access token required to authorize and authenticate the operation.GoogleDriveCredential
File or Folder IDThis input specifies the ID of the file or folder to set the permissions on.

Find the ID: In Google Drive, locate the file or folder, right-click, and select "Get Link" or "Share". A window will pop up displaying the sharing settings for the file or folder. The link will look something like the following: https://drive.google.com/file/d/FILE_ID/view or https://drive.google.com/drive/folders/FOLDER_ID.The Get File List and Get Folder List steps will also return File and Folder IDs.
String
PermissionProvide permission data that defines a user or group's access rights to the specified resource. Build data on this property to specify the user's email, permission type, and role.
GoogleDrivePermission

User's EmailProvide the email address associated with the user you want to grant permissions to for the resource.
String

Permission TypeChoose the permission type for this resource, which can be a user, group, domain, anyone, or unknown.
GoogleDrivePermType

RoleSet the role for the user or group, which can be owner, organizer, fileOrganizer, writer, commenter, reader, or unknown.
GoogleDriveRole

Outputs

PropertyDescriptionData Type
Error InfoThis output provides information about any errors or issues that may have occurred during the execution of this step. It contains error codes, error descriptions, or other relevant error details.
GoogleDriveErrorInfo
ResultThis output contains a list of the users with access to the resource; each item in the list will contain metadata for the user: id, email, type, and role.
GoogleDrivePermission


Was this article helpful?

What's Next