# Validation failed: Primary email is not allowed

**URL:** https://meta.discourse.org/t/validation-failed-primary-email-is-not-allowed/113958
**Category:** Development
**Created:** [April 10, 2019, 12:05pm UTC](https://meta.discourse.org/t/validation-failed-primary-email-is-not-allowed/113958 "2019-04-10T12:05:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pankajsharma](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@pankajsharma](https://meta.discourse.org/u/pankajsharma)
#### Post date: [April 10, 2019, 12:05pm UTC](https://meta.discourse.org/t/validation-failed-primary-email-is-not-allowed/113958/1 "2019-04-10T12:05:27Z")

</div>

Hi, using this method to update users email ID. Getting this error in integration. Do you have any idea?

> [@If someone changes their email in WordPress, change it in Discourse - sso\_sync](https://meta.discourse.org/t/if-someone-changes-their-email-in-wordpress-change-it-in-discourse-sso-sync/76572/2):
>
> I should add that I know the email change will happen when the user next logs in to discourse, but we need to instantaneously change it when they change it in WordPress.

any suggestion?
