# 'your username must be different than your nickname'

**URL:** https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136
**Category:** WordPress
**Created:** [07.Август.2018 18:26:02 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136 "2018-08-07T18:26:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [07.Август.2018 18:26:04 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/1 "2018-08-07T18:26:04Z")

</div>

We set up the sync and it seems to be working fine, except a bug where it sets the username and nickname as similar in Wordpress, and that makes the username invalid in Wordpress.

It works, but if you try to change anything for example a users role, you get the error message and the change doesn’t go through

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/3/83e61ea25996e9298a75e1a4bc74cd2ec6402778.png)

---

<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: [07.Август.2018 18:39:16 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/2 "2018-08-07T18:39:16Z")

</div>

> [@Andy02](#):
>
> We set up the sync and it seems to be working fine, except a bug where it sets the username and nickname as similar in Wordpress, and that makes the username invalid in Wordpress.

Could you give some more detail about what you are doing here?

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [07.Август.2018 21:14:09 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/3 "2018-08-07T21:14:09Z")

</div>

Using the Wordpress plugin to sync user accounts

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [07.Август.2018 21:15:07 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/4 "2018-08-07T21:15:07Z")

</div>

We did have Discourse as an SSO provider but that caused issues so i turned it off

---

<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: [07.Август.2018 21:29:54 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/5 "2018-08-07T21:29:54Z")

</div>

Are you syncing accounts by enabling the ‘Create or Sync Discourse Users on Login’ option? All it is doing is sending user data from WordPress to Discourse. The only field it updates on WordPress is the Discourse Username field. This field is only used by the [WP Discourse](https://github.com/discourse/wp-discourse) plugin, so it shouldn’t be causing a problem.

I think that by default WordPress sets the nickname to the same value as the username field. Do you have the iThemes Security plugin installed on your site? The only reference I can find to the error in your screenshot is for sites that are using that plugin.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [17.Август.2018 20:59:41 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/6 "2018-08-17T20:59:41Z")

</div>

thanks, i do have iThemes security. i’ll switch it out for something else

---

<div class="post-metadata">

### Author: ![MichealReilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michealreilly/32/171360_2.png) [@MichealReilly](https://meta.discourse.org/u/MichealReilly)
#### Post date: [28.Февраль.2020 20:18:29 UTC](https://meta.discourse.org/t/your-username-must-be-different-than-your-nickname/94136/7 "2020-02-28T20:18:29Z")

</div>

На всякий случай, если кто-то наткнётся на это снова: проблема вызвана модулем iThemes «System Tweaks». Если его отключить, всё должно заработать. Похоже, что в iThemes Security функция «System Tweaks» изменяет файлы конфигурации сервера.
