办公效率中等风险

飞书权限管理工具

Manage Feishu document and file permissions: list, add, or remove collaborators with view/edit/full_access levels.

by @skillhubv1.0.07 浏览3 下载
#access-control#collaboration#documents#feishu#lark#permissions
推荐方式

直接交给 AI

无需安装文件。复制一句话,让 AI 在线读取这个 Skill。

下载 Skill ZIP ↓ 查看 SKILL.md 原文 ↗
01

它能帮你做什么

先看懂,再决定要不要交给 AI。

feishu-perm provides a single tool `feishu_perm` for managing permissions on Feishu (Lark) documents, sheets, folders, wiki nodes, and other file types. Supported actions include listing current collaborators, adding new collaborators (by email, open_id, user_id, union_id, openchat, or department id), and removing existing collaborators. Permission levels supported are view, edit, and full_access. The tool supports multiple token types including doc, docx, sheet, bitable, folder, file, wiki, and mindnote. Requires the drive:permission OAuth scope. The tool is disabled by default and must be explicitly enabled in channel configuration because permission management is considered a sensitive operation.

✓List collaborators on a Feishu document or folder
✓Grant view, edit, or full_access permission to a user, group, or department
✓Revoke access from a collaborator on a Feishu file or folder
✓Audit existing permission settings across documents, sheets, and wiki nodes
02

怎么交给 AI

在线读取优先,本地安装作为备选。

◎
在线读取推荐 · 不需要安装

适合能访问网页的 ChatGPT、Agent 或其他 AI。

AI Prompt请访问 https://skills.dhmip.cn/skills/skillhub/feishu-perm/SKILL.md,读取并按照该 Skill 完成任务;如当前环境支持本地安装,也可以下载该 Skill。
↓
下载安装到 Agent适合支持 Skills 的客户端

未登录时可使用公共安装文档;登录后可以按不同 AI 分开管理。

Install Prompt请根据 https://skills.dhmip.cn/install/skillhub.md,安装 @skillhub/feishu-perm。
登录后管理多个 AI →
03

兼容性与要求

安装或使用前,先确认环境是否匹配。

适用客户端

feishu

使用要求

  • Feishu (Lark) application with drive:permission scope configured
  • OAuth token or tenant access token with permission to call drive API
  • Channel configuration with `channels.feishu.tools.perm: true` enabled
⌘技术详情查看完整 SKILL.md 与原始内容
⌄
SKILL.mdRaw ↗

name: feishu-perm
description: |
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.


Feishu Permission Tool

Single tool feishu_perm for managing file/document permissions.

Actions

List Collaborators

{ "action": "list", "token": "ABC123", "type": "docx" }

Returns: members with member_type, member_id, perm, name.

Add Collaborator

{
  "action": "add",
  "token": "ABC123",
  "type": "docx",
  "member_type": "email",
  "member_id": "user@example.com",
  "perm": "edit"
}

Remove Collaborator

{
  "action": "remove",
  "token": "ABC123",
  "type": "docx",
  "member_type": "email",
  "member_id": "user@example.com"
}

Token Types

| Type | Description |
| ---------- | ----------------------- |
| doc | Old format document |
| docx | New format document |
| sheet | Spreadsheet |
| bitable | Multi-dimensional table |
| folder | Folder |
| file | Uploaded file |
| wiki | Wiki node |
| mindnote | Mind map |

Member Types

| Type | Description |
| ------------------ | ------------------ |
| email | Email address |
| openid | User open_id |
| userid | User user_id |
| unionid | User union_id |
| openchat | Group chat open_id |
| opendepartmentid | Department open_id |

Permission Levels

| Perm | Description |
| ------------- | ------------------------------------ |
| view | View only |
| edit | Can edit |
| full_access | Full access (can manage permissions) |

Examples

Share document with email:

{
  "action": "add",
  "token": "doxcnXXX",
  "type": "docx",
  "member_type": "email",
  "member_id": "alice@company.com",
  "perm": "edit"
}

Share folder with group:

{
  "action": "add",
  "token": "fldcnXXX",
  "type": "folder",
  "member_type": "openchat",
  "member_id": "oc_xxx",
  "perm": "view"
}

Configuration

channels:
  feishu:
    tools:
      perm: true # default: false (disabled)

Note: This tool is disabled by default because permission management is a sensitive operation. Enable explicitly if needed.

Permissions

Required: drive:permission