# Anonymiseren van een gebruiker met SSO, blijft opnieuw aangemaakt worden

**URL:** https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274
**Category:** WordPress
**Tags:** sso, wordpress
**Created:** [19 september 2025 om 12:52 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274 "2025-09-19T12:52:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [19 september 2025 om 12:52 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/1 "2025-09-19T12:52:39Z")

</div>

Ik gebruik SSO van WordPress naar Discourse.

Als ik een gebruiker anonimiseer, met de bedoeling om de naam en foto van al hun berichten te verwijderen (de gebruiker is verbannen), dan staat het hen, als die gebruiker opnieuw inlogt in WordPress, toe om een gloednieuw account aan te maken in Discourse op basis van hun profiel, wat hen in wezen de-bannt als een nieuw account.

Dit is een probleem. Is er een manier om sommige mensen in het systeem te markeren als “Laat ze geen nieuw account aanmaken met hetzelfde e-mailadres” of iets dergelijks?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [24 november 2025 om 11:45 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/2 "2025-11-24T11:45:45Z")

</div>

Hey @Shauny sorry for missing this. We have a dedicated #Support > WordPress category which is watched closely for Wordpress issues. What I would suggest here is the approach detailed in this post.

> [@How to prevent some WP users from being able to login to Discourse](https://meta.discourse.org/t/how-to-prevent-some-wp-users-from-being-able-to-login-to-discourse/93234/2):
>
> There is a wpdc\_sso\_provider\_before\_sso\_redirect action hook that can be used to bypass SSO. The hook is fired right before the SSO login redirect to Discourse. It is passed the current WordPress user\_id and user object as parameters: [wp-discourse/lib/sso-provider/discourse-sso.php at main · discourse/wp-discourse · GitHub](https://github.com/discourse/wp-discourse/blob/master/lib/sso-provider/discourse-sso.php#L189). The basic idea is that if a user doesn’t meet the condition you have set for logging into Discourse, you redirect them to some page and then call exit. If the user does meet…

Let me know how you go with that.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [3 december 2025 om 02:41 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/3 "2025-12-03T02:41:57Z")

</div>

@Shauny were you able to work this out? I moved this to #Support > WordPress.

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [11 december 2025 om 09:48 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/4 "2025-12-11T09:48:57Z")

</div>

Yes I used the info in the linked post and it worked thanks.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [11 december 2025 om 15:08 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/5 "2025-12-11T15:08:13Z")

</div>

Awesome! I think you should be able to indicate the post that is the solution on the post menu. Select that and the solution will be displayed at the top for future travelers and this topic will be scheduled for closure.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10 januari 2026 om 15:09 UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274/6 "2026-01-10T15:09:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
