activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Sep 3, 2025

Update File or Folder Permission

UiPath.GSuite.Activities.UpdateFileFolderPermissionConnections

Description

Updates the permission of a specified file or folder.

Scopes

This activity requires the following scopes:

  • https://www.googleapis.com/auth/drive

Project compatibility

Windows | Cross-platform

Configuration

  • Google Drive connection - The connection for the Google Workspace account to use in the activity.
  • File or folder - The file or folder for which the permission will be updated.

    Select the plus icon to choose from the following input options:

    • URL or ID - The initial field changes to File or folder URL or ID, where you can provide the URL or ID of the file or folder.
    • Use File or Folder Variable - Enter a variable for the file or folder. This field accepts input of type IResource.
    • Full Path - The initial field changes to Full file or folder path, where you can provide the full path of the file or folder.
    • Relative Path - The following fields appear:
      • Parent folder - Specify the parent folder. Browse the Drive folders and select a folder. This field accepts input of type IResource.
      • File or folder relative file - Specify the relative file or folder path to the parent folder, including the name and extension. This field accepts input of type String.
    • Reload File or Folder Data - Select this option only if you have modified your folders and need to retrieve the latest data.
  • Permission ID - The ID of the permission that you want to update. You can retrieve the permission ID using the Get File Permissions activity. The permission ID is a component of the datatype permission.
  • Role - The type of permission that the file or folder will be updated to. Select one of the following roles from the drop-down list:
    • Owner - The entity owns the file.
    • Writer - The entity can edit the file.
    • Commenter - The entity can comment on the file.
    • Reader - The entity can read and download the file.
  • Expiration time - The time that you want the file or folder permissions to expire. This property supports <Nullable>DateTime variables and <Nullable>DateTime formatted values. If no value is specified, the permission updates without an expiration time.
  • Use domain admin access - Issues the request as a domain administrator. If checked, then the requester will be granted access if they are an administrator of the domain to which the item belongs. This option supports Boolean values. By default, False is selected.
  • Remove expiration - If selected, the previous expiration date for the permission is removed. This field supports Boolean values. By default, False is selected.

Properties

Output

  • Updated permission - The updated permission specified as a custom datatype. This property supports Google Permission variables. You can use this variable as an input property value in the Get File or Folder Permissions activity. For more information about the Permission datatype, check Google Drive API Permissions.
Note: Although Update File or Folder Permission returns an object, the inputs of other activities are actually for the permission ID of type string, not the entire object.
  • Description
  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2025 UiPath. All rights reserved.