# 使用外部数据库更新组成员资格

**URL:** https://meta.discourse.org/t/update-group-membership-using-external-database/166541
**Category:** Support
**Created:** [2020年十月7日 12:55 UTC](https://meta.discourse.org/t/update-group-membership-using-external-database/166541 "2020-10-07T12:55:36Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020年十月7日 21:29 UTC](https://meta.discourse.org/t/update-group-membership-using-external-database/166541/6 "2020-10-07T21:29:00Z")

</div>

像那样的 API 解决方案是我推荐的。我目前不知道有从 Mailman 到 Discourse 的直接解决方案。如果你运行的是 Mailman 服务器，可以在那里添加钩子，以便在订阅状态变更时向 Discourse 群组添加或移除用户；不过，使用每日定时任务进行同步可能更简单，效果也几乎一样。根据订阅者数量和流失率，你也可以采用更“低技术”的方式，让用户自行申请加入群组，或者参考 [Invite users to a group](https://meta.discourse.org/t/invite-individual-users-to-a-group/15544) 来邀请特定用户加入群组。

---

_[View the full topic](https://meta.discourse.org/t/update-group-membership-using-external-database/166541)._
