Google Drive

GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE

Modifies sharing permissions for an existing google drive file, granting a specified role to a user, group, domain, or 'anyone'.

Remote googledrive

Other tools also called GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "title": "Role",
      "pattern": "^(owner|organizer|fileOrganizer|writer|commenter|reader)$",
      "examples": [
        "reader",
        "writer",
        "commenter"
      ],
      "description": "Permission role to grant."
    },
    "type": {
      "type": "string",
      "title": "Type",
      "pattern": "^(user|group|domain|anyone)$",
      "examples": [
        "user",
        "group",
        "domain",
        "anyone"
      ],
      "description": "Type of grantee for the permission."
    },
    "domain": {
      "type": "string",
      "title": "Domain",
      "default": null,
      "examples": [
        "example.com"
      ],
      "nullable": true,
      "description": "Domain to grant permission to (e.g., 'example.com'). Required if 'type' is 'domain'."
    },
    "file_id": {
      "type": "string",
      "title": "File Id",
      "examples": [
        "zcfwrt543rgrey5h5jh4wgefbf"
      ],
      "description": "Unique identifier of the file to update sharing settings for."
    },
    "email_address": {
      "type": "string",
      "title": "Email Address",
      "default": null,
      "examples": [
        "[email protected]"
      ],
      "nullable": true,
      "description": "Email address of the user or group. Required if 'type' is 'user' or 'group'."
    }
  }
}