# La suppression d'utilisateurs sur WP les supprime-t-elle sur Discourse ?

**URL:** https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689
**Category:** WordPress
**Created:** [Novembre 8, 2017, 2:12 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689 "2017-11-08T14:12:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![charliel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charliel/32/120555_2.png) [@charliel](https://meta.discourse.org/u/charliel)
#### Post date: [Novembre 8, 2017, 2:12 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689/1 "2017-11-08T14:12:16Z")

</div>

I couldn’t find anything on how this works exactly. We have SSO setup. What I’m wondering is, if I delete someone in WP and they have an account on Discourse because they’ve logged in or posted, will they also be deleted on Discourse? For the other way around I would assume that removing someone from Discourse who has a WP account will not be removed from WP.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [Novembre 8, 2017, 2:46 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689/2 "2017-11-08T14:46:43Z")

</div>

Considering that Discourse won’t even let you delete users manually (if they have posts past a certain limit), even when you are _ADMIN_, I would suspect that the users stay in Discourse.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Novembre 8, 2017, 3:14 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689/3 "2017-11-08T15:14:13Z")

</div>

Deleting a WordPress user will not delete the associated Discourse user. You have to deal with the user manually on Discourse. I think the plugin could show a notice before a WordPress user who has a Discourse user\_id is deleted.

Removing a user from Discourse won’t have any effect on the associated WordPress user.

---

<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: [Novembre 9, 2017, 12:17 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689/4 "2017-11-09T00:17:50Z")

</div>

> [@simon](#):
>
> You have to deal with the user manually on Discourse

You can’t delete a user who has posts, and if the user is deleted in WordPress, they won’t be able to log in to Discourse, so it doesn’t really matter. Unless, you subsequently turn off SSO and have people activate accounts on Discourse.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Juin 8, 2024, 12:44 UTC](https://meta.discourse.org/t/deleting-users-on-wp-deletes-them-on-discourse/73689/5 "2024-06-08T12:44:03Z")

</div>

Ce sujet a été automatiquement fermé après 2403 jours. Les nouvelles réponses ne sont plus autorisées.
