# 如果徽章可以可选地同步组成员资格会怎样？

**URL:** <https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232>\
**Category:** Feature\
**Tags:** badges, groups, completed\
**Created:** [2018 年7 月 13 日 04:58 UTC](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232 "2018-07-13T04:58:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2018 年7 月 13 日 04:58 UTC](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232/1 "2018-07-13T04:58:13Z")

</div>

我今天在查看这个主题：

> [@Feature request: Category unlocking based on data](https://meta.discourse.org/t/feature-request-category-unlocking-based-on-data/72305):
>
> We’re trying to create a drip-campaign style experience, where a new user sees only one category when they join and then every few days another category is unlocked. We currently use category security to hide future lessons from students by setting those categories to admin-only access, and then, as the days pass, manually changing the security setting to allow everyone access on the day of the lesson/discussion. But this only works for everyone in our Discourse at the same time. One thing tha…

在思考问题时，我发现 Discourse 在定义“动态”用户组方面略显薄弱。

> 给我一个注册超过 1 个月的用户组

> 给我一个至少发布过 10 次帖子的用户组

等等。

另一方面，一旦启用了高级 SQL，徽章系统对这种“动态”特性提供了非常丰富的支持。

在徽章上增加一个额外的复选框，将徽章与用户组关联起来，将大大增强功能。目前我们无法为徽章持有者分配权限，因为没有对应的用户组作为支撑。只有信任等级徽章具有这种特殊行为（我们可以将此功能移植到新系统中）。

因此，我的提议如下：

```plaintext
[] 将徽章成员镜像到用户组

```

一旦为特定徽章勾选此选项，系统将自动创建或根据名称查找对应的“用户组”，并在徽章成员发生变化时保持组成员同步。

大家怎么看？

---

_[View the full topic](https://meta.discourse.org/t/what-if-badges-could-optionally-synchronize-group-membership/92232)._
