删除没有主用户账户的账户

如果这个问题已经在某个地方被讨论过,我深表歉意。我甚至不太确定针对此问题应该使用哪些关键词。

具体来说,我们的 Discourse 论坛是作为另一个网站的附属部分存在的。该网站上的任何用户都可以访问论坛链接,并自动创建一个与主站用户名和头像相同的账户。

我们面临的问题是,如果用户关闭了主站账户,或因不良行为导致主站账户被关闭,论坛账户仍会保持开启状态,除非我们手动关闭、删除或暂停该论坛账户。

我们是否可以通过反向搜索来查看某个论坛账户是否关联了主站账户?或者,是否有一种方法可以在主站账户不再存在时自动关闭对应的论坛账户?

提前感谢您的帮助。再次抱歉,如果这个问题已经被讨论过而我错过了,敬请谅解。
Kat

I assume that you are using SSO between the sites.

So when closing an account in the main site it can query the forum using a GET to /u/by-external/{external_id}.json to retrieve the forum account, and then use the user_id in the response to issue an subsequent request closing the forum account.

2 个赞

I honestly don’t know how it was done, I’m just a forum admin, but thank you - I will pass this information on to the fellow who does that kind of thing.

1 个赞