# How to restrict account changes when authenticating with Google?

**URL:** <https://meta.discourse.org/t/how-to-restrict-account-changes-when-authenticating-with-google/42458>\
**Category:** SSO\
**Created:** [April 12, 2016, 4:02pm UTC](https://meta.discourse.org/t/how-to-restrict-account-changes-when-authenticating-with-google/42458 "2016-04-12T16:02:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [April 12, 2016, 4:47pm UTC](https://meta.discourse.org/t/how-to-restrict-account-changes-when-authenticating-with-google/42458/2 "2016-04-12T16:47:07Z")

</div>

Users who are “staff” are always allowed to change their username - are you sure the user you are testing with is not a “moderator” or “admin”?

Although it doesn’t technically _prevent_ (in a secure way) the user from changing their username / real name you could add the following to **both** a CSS and “mobile CSS” customisation:

```SCSS
.user-preferences {
 .pref-username,
 .pref-name {
   display:none;
 }
}

```

This would just hide the controls for viewing and editing username and real name.

---

_[View the full topic](https://meta.discourse.org/t/how-to-restrict-account-changes-when-authenticating-with-google/42458)._
