# אנונימיזציה של משתמש עם SSO, ממשיכה להיווצר מחדש

**URL:** https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274
**Category:** WordPress
**Tags:** sso, wordpress
**Created:** [19 בספטמבר,‏ 2025,‏ 12:52pm UTC](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274 "2025-09-19T12:52:39Z")
**Posts on this page:** 1
**Showing post:** 2

<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 בנובמבר,‏ 2025,‏ 11:45am 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.

---

_[View the full topic](https://meta.discourse.org/t/anonymising-a-user-with-sso-keeps-being-recreated/383274)._
