# 分享 Data Explorer 查询

**URL:** https://meta.discourse.org/t/sharing-a-data-explorer-query/401612
**Category:** Feature
**Tags:** data-explorer
**Created:** [2026年四月27日 13:48 UTC](https://meta.discourse.org/t/sharing-a-data-explorer-query/401612 "2026-04-27T13:48:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [2026年四月27日 13:48 UTC](https://meta.discourse.org/t/sharing-a-data-explorer-query/401612/1 "2026-04-27T13:48:23Z")

</div>

作为管理员，我会编写一个数据探索器查询。通过该查询，我可以管理拥有访问权限的组。

但是，如果我只是直接复制/粘贴查询本身的 URL 来分享，目标受众会收到 403 错误，因为我看到的是管理/编辑 URL，而他们并没有_那么高_的权限。

因此，要分享我的查询，我必须前往

组 → [目标组] → 报告 → [在随机(?)排序的列表中滚动查找] → [点击报告] → 复制/粘贴_那个_ URL 😮‍💨

能否要么让非特权用户将管理/编辑 URL 视为只读视图，要么在我的管理界面中提供一个便捷的“获取 URL

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年四月27日 14:12 UTC](https://meta.discourse.org/t/sharing-a-data-explorer-query/401612/2 "2026-04-27T14:12:06Z")

</div>

我无法想象在那里添加一个按钮会需要太多工作量。我认为，指向群组报告的链接末尾总是查询编号（你可以在管理查询页面的 URL 中看到），位于 `/g/[group-name]/reports/` 之后。因此，位于 `/admin/plugins/discourse-data-explorer/queries/-15?params=null` 的报告应该对应 `/g/[group-name]/reports/-15`。由于查询可以与多个群组共享，分享链接需要以某种方式适应这种情况，为每个群组生成独立的链接——我认为同时列出相关群组也会有所帮助，因为理论上你可能并不想将链接分享给列表中的所有群组。🤔

如果今天我有兴致，且求职依然毫无进展，我可能会尝试为此提交一个 PR。
