# Locking the Display Name

**URL:** https://meta.discourse.org/t/locking-the-display-name/71596
**Category:** Feature
**Created:** [2017年十月7日 16:39 UTC](https://meta.discourse.org/t/locking-the-display-name/71596 "2017-10-07T16:39:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arwen](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@arwen](https://meta.discourse.org/u/arwen)
#### Post date: [2017年十月7日 16:39 UTC](https://meta.discourse.org/t/locking-the-display-name/71596/1 "2017-10-07T16:39:22Z")

</div>

Hello,

I have set up a discourse forum that is connected to an organization. Some of the users are not following the instructions to have the display name in a certain format. (e.g. we want John D versus a nickname like DogLover.) Since we are more of a professional group, it would be great if that field was not user-defined.

Is there a way to lock down the display name where only moderators/admins can edit a user’s display name?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2017年十月9日 00:17 UTC](https://meta.discourse.org/t/locking-the-display-name/71596/2 "2017-10-09T00:17:36Z")

</div>

I do not think so, we only lock the username after a certain amount of time. Sounds like an interesting feature request for some communities.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2017年十月9日 03:31 UTC](https://meta.discourse.org/t/locking-the-display-name/71596/3 "2017-10-09T03:31:07Z")

</div>

> [@arwen](#):
>
> Is there a way to lock down the display name where only moderators/admins can edit a user’s display name?

I’ve seen a few SSO setups that work this way (not necessarily by design) so you could investigate that route.

---

<div class="post-metadata">

### Author: ![arwen](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@arwen](https://meta.discourse.org/u/arwen)
#### Post date: [2017年十二月18日 20:13 UTC](https://meta.discourse.org/t/locking-the-display-name/71596/4 "2017-12-18T20:13:14Z")

</div>

I ended up using custom CSS to remove the display name pane from a user’s preferences panel.

```
div.control-group.pref-name
{
    visibility: hidden;
    display: none;
}

```

It can still be edited by admins/moderators in the Admin panel when administering a user.
