# Missing Name in Preferences

**URL:** https://meta.discourse.org/t/missing-name-in-preferences/39624
**Category:** Bug
**Created:** [February 15, 2016, 7:59pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624 "2016-02-15T19:59:45Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 15, 2016, 7:59pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/1 "2016-02-15T19:59:45Z")

</div>

Hello!

I have enabled SSO for our Discourse installation, and everything works just fine. However, when a user views their preferences, their name isn’t displayed:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/0/306b4c44875ee2bd3db36eef5c9fec5c502a5596.png)

As you can see from this screenshot, username and email are displayed, and the users name is displayed in the header, but not in the **Name** section, as you’d expect.

Is this expected behavior?

I have checked, and `name` is populated in `users`, as is `external_name` in `single_sign_on_records`.

Also, is there any way to hide the “(optional)” text, as it feels very redundant here since a users full name is provided by the SSO provider, and we don’t allow them to change it via Discourse.

---

<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: [February 15, 2016, 9:31pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/2 "2016-02-15T21:31:38Z")

</div>

Is name showing up on user card?

What version are you running?

What plugins?

How was this installed?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [February 15, 2016, 10:05pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/3 "2016-02-15T22:05:24Z")

</div>

This might also be related to certain site settings, I think (?)

---

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 16, 2016, 9:58am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/4 "2016-02-16T09:58:24Z")

</div>

Thanks Sam. Answers to your questions below…

> Is name showing up on user card?

Yes it is.

> What version are you running?

![](https://global.discourse-cdn.com/meta/original/3X/6/e/6edaa4fd098d65117ab739179c35025fb77e989a.png)

> What plugins?

- discourse-details
- docker\_manager
- lazyYT
- poll

All of which I believe are installed by default.

> How was this installed?

I’ve installed Discourse via Docker, using this repo: [GitHub - discourse/discourse\_docker: A Docker image for Discourse · GitHub](https://github.com/discourse/discourse_docker). Only the web app is inside a container, as we’re use Amazon RDS to provide Postgres, and Elasticache to provide Redis.

Let me know if you need any more information.

---

<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: [February 16, 2016, 10:20am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/5 "2016-02-16T10:20:26Z")

</div>

Ok one more question, if you change your name to something totally different to your user name does it show up there?

What SSO related site settings do you have in play?

---

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 16, 2016, 10:39am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/6 "2016-02-16T10:39:50Z")

</div>

> Ok one more question, if you change your name to something totally different to your user name does it show up there?

Afraid not. See below…

 ![](https://global.discourse-cdn.com/meta/original/3X/e/8/e806c57ddfba3dadbaa613603e73dea3b89fc993.png)

I changed my name from **Mic Pringle** to **Joe Bloggs**.

Here’s the list of SSO settings that I’ve either populated or enabled:

- enable sso
- sso url
- sso secret
- sso overrides email
- sso overrides username
- sso overrides name
- sso overrides avatar
- logout redirect

---

<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: [February 16, 2016, 10:41am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/7 "2016-02-16T10:41:59Z")

</div>

curious, if you disable “sso overrides name” does the issue go away?

---

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 16, 2016, 11:07am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/8 "2016-02-16T11:07:35Z")

</div>

It certainly does…

 ![](https://global.discourse-cdn.com/meta/original/3X/3/2/3225d162a6bf14a4bac11b1c6476f6171a221ad1.png)

However, this is an issue for me because I don’t want to allow users to, or even give the impression that they can, change their name from within Discourse, since it won’t propagate to all our other apps. We have a dedicated profile page for that, and the “one source of the truth” is our SSO provider, hence me enabling **sso overrides name** in the first place.

Would you consider this to be expected behaviour, or a bug?

---

<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: [February 16, 2016, 11:26am UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/9 "2016-02-16T11:26:09Z")

</div>

Looks like a bug to me…

---

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 16, 2016, 12:16pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/10 "2016-02-16T12:16:46Z")

</div>

Thanks for confirming this.

Million dollar question then, but is it something that’s likely to be fixed relatively soon?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 16, 2016, 3:09pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/11 "2016-02-16T15:09:34Z")

</div>

> [@micpringle](#):
>
> Million dollar question then, but is it something that’s likely to be fixed relatively soon?

Is that soon enough? 😉

[https://github.com/discourse/discourse/commit/81c6fb318b9648dbccf682579a049fb583660ac4](https://github.com/discourse/discourse/commit/81c6fb318b9648dbccf682579a049fb583660ac4)

---

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [February 16, 2016, 4:25pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/12 "2016-02-16T16:25:04Z")

</div>

> [@zogstrip](#):
>
> Is that soon enough? 😉

It sure is! That’s a crazy level of support - bug raised in the morning, fixed in the afternoon (_at least in my timezone_ 😄 ), if only more were like you.

Thank you both for spending the time tracking down the issue, and then fixing it so promptly.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 16, 2016, 4:25pm UTC](https://meta.discourse.org/t/missing-name-in-preferences/39624/13 "2016-02-16T16:25:56Z")

</div>


