Loading...
Loading...
Manage Feishu document permissions (权限管理) — add/remove collaborators, set public sharing, check access levels. Use when the user mentions sharing (分享/共享), permissions (权限), collaborators (协作者), access control (访问控制), visibility (公开/私有), link sharing (链接分享), or wants to manage who can view/edit a document. Also trigger when user says "把文档分享给XX"、"谁能看这个文档"、"设成公开". DO NOT TRIGGER for creating or editing document content — use feishu-doc for that.
npx skill4agent add midnightv1/claude-code-feishu feishu-permpython3 .claude/skills/feishu-perm/scripts/perm_ctl.py <command> [args]# List collaborators on a document
perm_ctl.py list <token> --type <doc_type>
# Add a collaborator
perm_ctl.py add <token> --type <doc_type> --user <open_id_or_name> --perm <view|edit|full_access>
# Remove a collaborator
perm_ctl.py remove <token> --type <doc_type> --user <open_id> --member-type <openid|userid>
# Get public sharing settings
perm_ctl.py public-get <token> --type <doc_type>
# Set public sharing (link sharing)
perm_ctl.py public-set <token> --type <doc_type> --link <tenant_readable|tenant_editable|anyone_readable|anyone_editable|off>
# Transfer ownership
perm_ctl.py transfer <token> --type <doc_type> --user <open_id>| Level | Description |
|---|---|
| Can view only |
| Can view and edit |
| Can view, edit, manage permissions, and share |
docxsheetbitablefolderfileslidesmindnotewiki| Value | Description |
|---|---|
| Anyone in organization can view |
| Anyone in organization can edit |
| Anyone with link can view |
| Anyone with link can edit |
| Only collaborators can access |
--usertransferfull_accesslistdrive:permissiondrive:permission:readonly