# Sync Discourse Users in WordPress Database

**URL:** https://meta.discourse.org/t/sync-discourse-users-in-wordpress-database/344760
**Category:** Support
**Created:** [December 29, 2024, 4:13pm UTC](https://meta.discourse.org/t/sync-discourse-users-in-wordpress-database/344760 "2024-12-29T16:13:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)
#### Post date: [December 29, 2024, 4:13pm UTC](https://meta.discourse.org/t/sync-discourse-users-in-wordpress-database/344760/1 "2024-12-29T16:13:26Z")

</div>

I am a bit confused about using the [WP Discourse](https://github.com/discourse/wp-discourse) Plugin and SSO. My goal is to register users with Discourse and use Discourse for logins and other account access. My only real goal for WordPress is to have the Discourse users created in the WordPress Database so I can use by newsletter plugin Mailster to send helpful how to type emails, not marketing. I will not want my Discourse users to ever access WordPress directly.

I am trying to think through how this can best work. Is it required to have users directly agree to receive website usage emails or can this be in TOS. They can always opt out of the emails from the email. Not sure if I need direct consent to receive how to accomplish best. Maybe a pop up or similar. My Discourse is [community.website.com](http://community.website.com) and WordPress resides on [website.com](http://website.com)

Using Mailchimp with Discourse plugin seems like it can get costly. I have a Mailcow VPS that works great and gets 10/10 on MailTester with all DKIM and Dmark setup correctly.

If the user is created in WordPress Database, is it also removed if Discourse user is deleted or anonymized?

Thanks!

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [December 29, 2024, 5:59pm UTC](https://meta.discourse.org/t/sync-discourse-users-in-wordpress-database/344760/2 "2024-12-29T17:59:41Z")

</div>

> [@BrianC](#):
>
> Is it required to have users directly agree to receive website usage emails or can this be in TOS

You can add a clause to your ToS specifying that users who register consent to receive certain communications via email. Also, you can check out [this](https://meta.discourse.org/t/how-to-force-existing-users-to-accept-tos/243878/9).

> [@BrianC](#):
>
> If the user is created in WordPress Database, is it also removed if Discourse user is deleted or anonymized?

[WP Discourse](https://github.com/discourse/wp-discourse) plugin doesn’t natively handle bi-directional synchronization for such cases so deleting one would not delete the other.
