# Wordpress Ultimate User + Discourse Synch

**URL:** https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113
**Category:** WordPress
**Created:** [October 15, 2017, 8:03pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113 "2017-10-15T20:03:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![quadro](https://avatars.discourse-cdn.com/v4/letter/q/6bbea6/32.png) [@quadro](https://meta.discourse.org/u/quadro)
#### Post date: [October 15, 2017, 8:03pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/1 "2017-10-15T20:03:57Z")

</div>

Hello,  
i have a working Discourse Install with Users and i would like to use Wordpress with Ultimate User. How i set the Wordpress SSO? Client or Provider? I need a Webhook to synch Users?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 15, 2017, 8:07pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/2 "2017-10-15T20:07:45Z")

</div>

You should use [WP Discourse](https://wordpress.org/plugins/wp-discourse/) plugin.

---

<div class="post-metadata">

### Author: ![quadro](https://avatars.discourse-cdn.com/v4/letter/q/6bbea6/32.png) [@quadro](https://meta.discourse.org/u/quadro)
#### Post date: [October 15, 2017, 8:10pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/3 "2017-10-15T20:10:13Z")

</div>

yes, but it not works. I can´t connect with the Wordpress login into Discourse and i don´t see a new user.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [October 15, 2017, 8:16pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/4 "2017-10-15T20:16:09Z")

</div>

As I know it won’t sync users. Instead if a user try to login in Discourse then he will be redirected to WordPress. Once he successfully loggedin there then he will redirect back to Discourse as logged-in user. And new user account will be created in Discourse if required.

---

<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: [October 15, 2017, 8:31pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/5 "2017-10-15T20:31:08Z")

</div>

> [@quadro](#):
>
> How i set the Wordpress SSO? Client or Provider?

You should be able to use the [WP Discourse](https://github.com/discourse/wp-discourse) plugin for this. Are your users now on Discourse, or WordPress, or both?

---

<div class="post-metadata">

### Author: ![quadro](https://avatars.discourse-cdn.com/v4/letter/q/6bbea6/32.png) [@quadro](https://meta.discourse.org/u/quadro)
#### Post date: [October 15, 2017, 8:33pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/6 "2017-10-15T20:33:35Z")

</div>

The Users are registrated on 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: [October 15, 2017, 8:37pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/7 "2017-10-15T20:37:45Z")

</div>

It would make sense to use WordPress as the SSO client. Are you able to get this working? Users will have to login to WordPress through Discourse before they will be created.

---

<div class="post-metadata">

### Author: ![quadro](https://avatars.discourse-cdn.com/v4/letter/q/6bbea6/32.png) [@quadro](https://meta.discourse.org/u/quadro)
#### Post date: [October 15, 2017, 10:00pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/8 "2017-10-15T22:00:43Z")

</div>

Wordpress as Provider works but i don´t can´t login with my Discourse Admin Account.

OK, First i make Discourse as Provider - all users must be logged in Wordpress and than i make Wordpress to Provider?

Sorry for my bad english. . 😄

---

<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: [October 15, 2017, 10:14pm UTC](https://meta.discourse.org/t/wordpress-ultimate-user-discourse-synch/72113/9 "2017-10-15T22:14:48Z")

</div>

It depends. You can either have all user logins handled by WordPress (WordPress as the SSO Provider), or have users login to either Discourse or WordPress separately, but give them the option to login to WordPress through Discourse (WordPress as the SSO client.)

If you want to have all logins through WordPress then use WordPress as the SSO provider. User’s who already have accounts on Discourse will be matched by their email address.

> [@quadro](#):
>
> Wordpress as Provider works but i don´t can´t login with my Discourse Admin Account.

Do you have the same email address for both? If not, you will have to change your Discourse email address to match your WordPress email address.

It would be possible to write a script to import existing Discourse users to WordPress automatically.
