recipe-audit-external-sharing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAudit External Drive Sharing
审计Drive外部共享
PREREQUISITE: Load the following skills to execute this recipe:gws-drive
Find and review Google Drive files shared outside the organization.
[!CAUTION] Revoking permissions immediately removes access. Confirm with the file owner first.
前提条件: 加载以下技能以执行此方案:gws-drive
查找并审核组织外部共享的Google Drive文件。
[!注意] 立即撤销权限会移除访问权限。请先与文件所有者确认。
Steps
步骤
- List externally shared files:
gws drive files list --params '{"q": "visibility = '\''anyoneWithLink'\''"}' - Check permissions on a file:
gws drive permissions list --params '{"fileId": "FILE_ID"}' - Revoke if needed:
gws drive permissions delete --params '{"fileId": "FILE_ID", "permissionId": "PERM_ID"}'
- 列出外部共享的文件:
gws drive files list --params '{"q": "visibility = '\''anyoneWithLink'\''"}' - 检查文件的权限:
gws drive permissions list --params '{"fileId": "FILE_ID"}' - 如有需要则撤销权限:
gws drive permissions delete --params '{"fileId": "FILE_ID", "permissionId": "PERM_ID"}'