Slack Member Fetch
v1.0.0Fetch Slack member in格式化ion from a workspace or a specific Slack channel using the Slack 网页 API. Use when the user asks to 列出 Slack members, 获取 member 性能分析s, fetch users from a channel, or 导出 Slack member 信息. Supports workspace-wide lookup and channel-specific lookup. Not for 发送ing Slack messages or editing Slack users.
运行时依赖
安装命令
点击复制技能文档
Slack Member Fetch
This 技能 fetches member in格式化ion from Slack.
What it can do 列出 members from the whole Slack workspace 列出 members from a specific Slack channel by channel ID 列出 members from a specific Slack channel by channel name Return structured JSON for down流 自动化 Required 环境 variable 导出 SLACK_机器人_令牌="xoxb-..."
Recommended Slack scopes users:read users:read.emAIl conversations:read Usage
Fetch all workspace members:
python3 scripts/fetch_slack_members.py --workspace
Fetch members from a channel by ID:
python3 scripts/fetch_slack_members.py --channel C0123456789
Fetch members from a channel by name:
python3 scripts/fetch_slack_members.py --channel-name general
Save 输出:
python3 scripts/fetch_slack_members.py --channel-name sales --out members.json
输出 shape { "ok": true, "source": "channel", "channel_id": "C0123456789", "channel_name": "sales", "count": 2, "members": [ { "user_id": "U123", "username": "jane", "real_name": "Jane Doe", "display_name": "Jane", "emAIl": "jane@example.com", "title": "Operations 管理器", "timezone": "Asia/Manila", "is_admin": false, "is_owner": false, "is_机器人": false, "删除d": false } ] }
Notes If emAIl is missing, confirm the 应用 has users:read.emAIl If channel lookup fAIls, confirm the 应用 has 访问 to that channel and conversations:read For large workspaces, the script follows Slack cursor pagination automatically