---
id: sm-recipe-transfer-file-ownership
name: "recipe-transfer-file-ownership"
url: https://skills.yangsir.net/skill/sm-recipe-transfer-file-ownership
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-drive", "file-ownership", "data-governance", "cloud-administration", "google-workspace"]
install_count: 582
rating: 4.20 (51 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-transfer-file-ownership

> 将Google Drive文件的所有权从一个用户转移到另一个用户，简化文件管理和协作。

**Stats**: 582 installs · 4.2/5 (51 reviews)

## Before / After 对比

### Google Drive文件，轻松转移所有权

## Readme

# recipe-transfer-file-ownership

# Transfer File Ownership

**PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`

Transfer ownership of Google Drive files from one user to another.

[!CAUTION]
Transferring ownership is irreversible without the new owner's cooperation.

## Steps

- List files owned by the user: `gws drive files list --params '{"q": "'\''user@company.com'\'' in owners"}'`

- Transfer ownership: `gws drive permissions create --params '{"fileId": "FILE_ID", "transferOwnership": true}' --json '{"role": "owner", "type": "user", "emailAddress": "newowner@company.com"}'`

Weekly Installs582Repository[googleworkspace/cli](https://github.com/googleworkspace/cli)GitHub Stars21.4KFirst Seen14 days agoSecurity Audits[Gen Agent Trust HubPass](/googleworkspace/cli/recipe-transfer-file-ownership/security/agent-trust-hub)[SocketPass](/googleworkspace/cli/recipe-transfer-file-ownership/security/socket)[SnykPass](/googleworkspace/cli/recipe-transfer-file-ownership/security/snyk)Installed oncodex565opencode565gemini-cli563cursor563github-copilot563kimi-cli562

---
*Source: https://skills.yangsir.net/skill/sm-recipe-transfer-file-ownership*
*Markdown mirror: https://skills.yangsir.net/api/skill/sm-recipe-transfer-file-ownership/markdown*