# 当 SSO ID 不再有效时自动移除账户

**URL:** https://meta.discourse.org/t/auto-remove-accounts-when-sso-id-is-not-longer-valid/130697
**Category:** SSO
**Created:** [2019 年10 月 10 日 15:24 UTC](https://meta.discourse.org/t/auto-remove-accounts-when-sso-id-is-not-longer-valid/130697 "2019-10-10T15:24:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019 年10 月 10 日 15:33 UTC](https://meta.discourse.org/t/auto-remove-accounts-when-sso-id-is-not-longer-valid/130697/2 "2019-10-10T15:33:31Z")

</div>

我建议在用户内部删除时调用 API，并将用户状态设置为“已暂停”。

> [@Understanding user statuses, roles, and permissions](https://meta.discourse.org/t/description-of-various-user-states-in-discourse/35171?u=falco):
>
> bookmark This is a guide for understanding the various user statuses, roles, and permissions within Discourse, including how they affect user capabilities and how they are stored in the database. person_raising_hand Required user level: Administrator Discourse has many built-in user statuses, roles, and permissions. These statuses and roles can be seen for a given user when viewing their profile from the users’ section of the admin dashboard: Permi…

---

_[View the full topic](https://meta.discourse.org/t/auto-remove-accounts-when-sso-id-is-not-longer-valid/130697)._
