# Locking the Display Name

**URL:** <https://meta.discourse.org/t/locking-the-display-name/71596>\
**Category:** Feature\
**Created:** [October 7, 2017, 4:39pm UTC](https://meta.discourse.org/t/locking-the-display-name/71596 "2017-10-07T16:39:22Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

The discussion revolves around locking down the **Display Name** field on a Discourse forum, allowing only moderators/admins to edit it. [arwen](/t/-/71596/1) wants to enforce a specific format for display names in a professional group. While [sam](/t/-/71596/2) thinks this is not currently possible and suggests a feature request, [HAWK](/t/-/71596/3) mentions that some Single Sign-On (SSO) setups may offer this functionality. [arwen](/t/-/71596/4) found a workaround by using custom CSS to hide the display name pane from users, although it can still be edited by admins/moderators in the Admin panel.

<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:** [October 7, 2017, 4:39pm 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:** [October 9, 2017, 12:17am 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:** [October 9, 2017, 3:31am 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:** [December 18, 2017, 8:13pm 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.
