From 6e645300a87e16b2ad073fa7933b7d7462c2561a Mon Sep 17 00:00:00 2001 From: longfros Date: Sat, 28 Feb 2026 12:30:05 +0800 Subject: [PATCH] docs(feishu): clarify oc_ group allowlist vs ou_ command allowFrom for /reset (#26835) * docs(feishu): clarify oc_* group allowlist vs ou_* command allowFrom * docs(feishu): avoid direct edits to generated zh-CN docs --------- Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> --- docs/channels/feishu.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) 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"], + }, + }, }, }, }