Deleting Users on WP Deletes Them on Discourse?

AI-generated summary

When using Single Sign-On (SSO) with WordPress and Discourse, deleting a WordPress user will not delete their associated Discourse user. simon confirms that the Discourse user must be dealt with manually. Additionally, due to Discourse’s policy of not allowing manual deletion of users with posts beyond a certain limit, the user will remain on Discourse even if they are deleted from WordPress. pfaffman notes that the only consequence of deleting a WordPress user is that they will no longer be able to log in to Discourse. Removing a user from Discourse will not affect their associated WordPress user.

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.

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.

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.

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.