batch_share_drive_file
Share a Google Drive file or folder with multiple users or groups in one operation, with customizable roles and expiration.
Instructions
Shares a Google Drive file or folder with multiple users or groups in a single operation.
Each recipient can have a different role and optional expiration time.
Note: Each recipient is processed sequentially. For very large recipient lists, consider splitting into multiple calls.
Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file or folder to share. Required. recipients (List[ShareRecipient]): List of recipient objects. send_notification (bool): Whether to send notification emails. Defaults to True. email_message (Optional[str]): Custom message for notification emails. dry_run (bool): If True, returns a preview and does not create sharing permissions. Defaults to True.
Returns: str: Summary of created permissions with success/failure for each recipient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| file_id | Yes | ||
| recipients | Yes | ||
| send_notification | No | ||
| email_message | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |