# Cant update email via API - invalid\_access error

**URL:** https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260
**Category:** Development
**Created:** [May 11, 2018, 1:06pm UTC](https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260 "2018-05-11T13:06:08Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [March 3, 2020, 4:42pm UTC](https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260/14 "2020-03-03T16:42:34Z")

</div>

> [@DDo](#):
>
> My use case is that the users will be managed within some other app via the api.

Could you implement [Single Sign On](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045) and make your other app the source of logins?

There is a specific sso setting `sso overrides email` that does what you are trying to accomplish. If you have sso setup you can then use the `sync_sso` endpoint and pass in the new email address.

---

_[View the full topic](https://meta.discourse.org/t/cant-update-email-via-api-invalid-access-error/87260)._
