# SSO，已禁用的旧账户

**URL:** <https://meta.discourse.org/t/sso-old-disabled-accounts/129471>\
**Category:** SSO\
**Created:** [2019年九月25日 11:50 UTC](https://meta.discourse.org/t/sso-old-disabled-accounts/129471 "2019-09-25T11:50:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [2019年九月25日 14:57 UTC](https://meta.discourse.org/t/sso-old-disabled-accounts/129471/4 "2019-09-25T14:57:29Z")

</div>

要查找 API 调用，您可以访问 [https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576。此外，关于](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576%E3%80%82%E6%AD%A4%E5%A4%96%EF%BC%8C%E5%85%B3%E4%BA%8E) SSO 的帖子应提供有关如何由 SSO 主系统禁用账户的信息。不过，对于您的情况，账户已被禁用，因此您可能需要以某种方式获取这些账户的列表……然后执行类似以下操作：

```
 Users.where(以某种方式获取用户).update_all(active: false)

```

（这并不完全准确，但思路如此。）

如果是紧急情况且您有预算，我的联系方式在个人资料中。

---

_[View the full topic](https://meta.discourse.org/t/sso-old-disabled-accounts/129471)._
