update_drive_permission
Update a Google Drive file or folder permission by changing its role or expiration time. Specify the file, permission, and new role or expiry to apply changes.
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.
Returns: str: Confirmation with updated permission details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| file_id | Yes | ||
| permission_id | Yes | ||
| expiration_time | No | ||
| user_google_email | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |