# /u?exclude\_groups=admins 在未登录时无效

**URL:** <https://meta.discourse.org/t/hide-admin-user-from-user-directory-and-top-contributors/404885>\
**Category:** Support\
**Tags:** user-directory\
**Created:** [2026年六月9日 20:11 UTC](https://meta.discourse.org/t/hide-admin-user-from-user-directory-and-top-contributors/404885 "2026-06-09T20:11:37Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)\
**Post date:** [2026年六月9日 22:26 UTC](https://meta.discourse.org/t/hide-admin-user-from-user-directory-and-top-contributors/404885/29 "2026-06-09T22:26:03Z")

</div>

“团队”列在 [https://meta.discourse.org/g/admins](https://meta.discourse.org/g/admins) 上。

再次强调，我的问题并不在于这些。我至少能够通过仅使用 CSS，从首页的 [Right Sidebar Blocks](https://meta.discourse.org/t/right-sidebar-blocks/231067) 插件中移除管理员用户。

```plaintext
.top-contributors--user:has([data-user-card="admin_username"]) {
  display: none;
}

```

再次说明，这并非安全问题；而是关于该用户始终在列表中排名第一，这确实也在许多论坛上暴露了管理员的身份。

我会查看 [https://meta.discourse.org/u，但根据上述讨论，这仅仅是](https://meta.discourse.org/u%EF%BC%8C%E4%BD%86%E6%A0%B9%E6%8D%AE%E4%B8%8A%E8%BF%B0%E8%AE%A8%E8%AE%BA%EF%BC%8C%E8%BF%99%E4%BB%85%E4%BB%85%E6%98%AF) Discourse 的核心运作方式。另一个选项是禁用 **enable\_user\_directory** 。但这也会同时禁用侧边栏的“顶级贡献者”列表，而这正是我们最关注的部分。

---

_[View the full topic](https://meta.discourse.org/t/hide-admin-user-from-user-directory-and-top-contributors/404885)._
