update_drive_permission
Modify sharing permissions for a Google Drive file or folder by changing the role or setting an expiration date.
Instructions
Updates an existing permission on a Google Drive file or folder.
Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file or folder. Required. permission_id (str): The ID of the permission to update (from get_drive_file_permissions). Required. role (Optional[str]): New role - 'reader', 'commenter', or 'writer'. If not provided, role unchanged. expiration_time (Optional[str]): Expiration time in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Set or update when permission expires. dry_run (bool): If True, returns a preview and does not update permissions. Defaults to True.
Returns: str: Confirmation with updated permission details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| file_id | Yes | ||
| permission_id | Yes | ||
| role | No | ||
| expiration_time | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |