# Cannot change username with SSO enabled

**URL:** <https://meta.discourse.org/t/cannot-change-username-with-sso-enabled/31307>\
**Category:** Bug\
**Created:** [July 22, 2015, 3:17pm UTC](https://meta.discourse.org/t/cannot-change-username-with-sso-enabled/31307 "2015-07-22T15:17:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)\
**Post date:** [October 7, 2021, 5:24pm UTC](https://meta.discourse.org/t/cannot-change-username-with-sso-enabled/31307/10 "2021-10-07T17:24:12Z")

</div>

This PR adds test cases for the problem described in the OP, so we can be sure that in general overriding username, for example, from `jb1` to `jb` works:

[https://github.com/discourse/discourse/pull/14555](https://github.com/discourse/discourse/pull/14555)

> [@fefrei](#):
>
> I found it: `sso overrides username` prevents the name change.
> 
> I still consider this situation a bug. Enabling this setting should _either_ hide the `Change Username` button from the administrator panel and disable the `users/.../preferences/username` page, _or_ still allow username changes for admins (possibly with a warning).

I’m going to take a look at it.

---

_[View the full topic](https://meta.discourse.org/t/cannot-change-username-with-sso-enabled/31307)._
