# 邀请码链接仅对不存在的用户有效破坏了我们当前的实现

**URL:** <https://meta.discourse.org/t/invitation-links-are-only-working-for-non-existing-users-breaking-our-current-implementation/357108>\
**Category:** Bug\
**Tags:** invites\
**Created:** [2025 年3 月 13 日 11:12 UTC](https://meta.discourse.org/t/invitation-links-are-only-working-for-non-existing-users-breaking-our-current-implementation/357108 "2025-03-13T11:12:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)\
发布日期： [2025 年3 月 17 日 20:35 UTC](https://meta.discourse.org/t/invitation-links-are-only-working-for-non-existing-users-breaking-our-current-implementation/357108/5 "2025-03-17T20:35:40Z")

</div>

> [@pmusaraj](#):
>
> 作为管理员，为什么不直接将现有用户添加到组中？

因为我们依赖他们点击邀请链接，并且一直在使用“添加到组”功能。这也有助于我们使用的自动化：

1. 学习者点击链接
2. 无论是现有用户还是新用户，他们都会被添加到组中并重定向到一个主题帖子
3. 该主题帖子位于一个私有类别中，只有被添加到组中的人才能查看（但现在只有新用户可以查看这些主题，因为[现有用户]不再被添加到组中，因此进行了新的更改）
4. 在某些情况下，当他们被添加到组中（点击链接后），我们会将其连接到 webhook，该 webhook 会授予徽章，或者在此步骤的基础上执行其他自动化。

这在过去大约两年半的时间里一直运行得非常完美。

---

_[View the full topic](https://meta.discourse.org/t/invitation-links-are-only-working-for-non-existing-users-breaking-our-current-implementation/357108)._
