transfer_drive_ownership
Transfer ownership of a Google Drive file or folder to another user. The current owner becomes an editor. Preview changes using dry run before committing.
Instructions
Transfers ownership of a Google Drive file or folder to another user.
This is an irreversible operation. The current owner will become an editor. Only works within the same Google Workspace domain or for personal accounts.
Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file or folder to transfer. Required. new_owner_email (str): Email address of the new owner. Required. move_to_new_owners_root (bool): If True, moves the file to the new owner's My Drive root. Defaults to False. dry_run (bool): If True, returns a preview and does not transfer ownership. Defaults to True.
Returns: str: Confirmation of the ownership transfer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| file_id | Yes | ||
| new_owner_email | Yes | ||
| move_to_new_owners_root | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |