diff --git a/docs/channels/feishu.md b/docs/channels/feishu.md index 81cf2692c64..0e7b79849df 100644 --- a/docs/channels/feishu.md +++ b/docs/channels/feishu.md @@ -317,14 +317,36 @@ After approval, you can chat normally. } ``` -### Allow specific users in groups only +### Allow specific groups only ```json5 { channels: { feishu: { groupPolicy: "allowlist", - groupAllowFrom: ["ou_xxx", "ou_yyy"], + // Feishu group IDs (chat_id) look like: oc_xxx + groupAllowFrom: ["oc_xxx", "oc_yyy"], + }, + }, +} +``` + +### Allow specific users to run control commands in a group (e.g. /reset, /new) + +In addition to allowing the group itself, control commands are gated by the **sender** open_id. + +```json5 +{ + channels: { + feishu: { + groupPolicy: "allowlist", + groupAllowFrom: ["oc_xxx"], + groups: { + oc_xxx: { + // Feishu user IDs (open_id) look like: ou_xxx + allowFrom: ["ou_user1", "ou_user2"], + }, + }, }, }, }