Google Drive Share file function

The Google Drive Share file function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to share a file.

For a full list of available functions, please read Google Drive functions.


Description

The Google Drive Share file function shares a file with a user, group, domain, or makes it public (anyone). You can specify the permission role and whether to send an email notification.


Setting it up

To use the Google Drive Share file function, follow these instructions:

{{popups:rpas/add:action=google-workspace-drive-share}}

Once on a process map:

  1. Navigate to the process where you would like to add the Google Drive Share file function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Google Drive Share file option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The file ID to share
Share typeNoSelectUserType: User, Group, Domain, or Anyone
E-mail / domainConditionalText-Email address (for user/group) or domain name. Not required when type is "anyone"
RoleNoSelectReaderPermission role: Reader, Writer, Commenter, or Organizer
Send notificationNoSwitchOffSend email notification to the recipient

Output variables

This action does not produce output variables.


Errors

ErrorDescription
File not foundThe specified file ID does not exist
Invalid emailThe email address is not valid
Permission deniedInsufficient permissions to share the file

Tips

  • Use type "anyone" to make a file publicly accessible
  • The "organizer" role is only available for shared drives
  • Use Get share link to get the URL after sharing

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.