# Letting users choose whether to show Full Name

**URL:** https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626
**Category:** Feature
**Created:** [April 18, 2018, 2:45pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626 "2018-04-18T14:45:42Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 18, 2018, 2:45pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/1 "2018-04-18T14:45:42Z")

</div>

We use SSO on our Discourse forum, and we would like to grab the forum users’ Full Names from our database, however we would also like to respect our users’ right to privacy, and as there is no option to hide these if they so choose, it seems there is no way for us to have our cake and eat it too.

It would be nice to have a feature where users can choose to show their full name on their profile. So it could still be passed over in SSO, but the user can choose whether to display it or not.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 18, 2018, 9:05pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/2 "2018-04-18T21:05:05Z")

</div>

I’m regularly annoyed when a site that knows my name requires me to enter it, but It’s not that much more trouble to enter your name than to click a check box.

I think your solutions are have your SSO know whether to provide the data in the first place or get a custom plugin.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 19, 2018, 12:51pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/3 "2018-04-19T12:51:38Z")

</div>

> [@pfaffman](#):
>
> I’m regularly annoyed when a site that knows my name requires me to enter it, but It’s not that much more trouble to enter your name than to click a check box.

I think you would be surprised! I think users are more likely to seek out the checkbox if they don’t want to have their names displayed than they are to seek out the box in which to enter their name (as there is little personal incentive to do it). I’d rather have people’s names up as we are a pretty tightly knit community and it’s hard to know who you are talking to at times. However, I would rather they have the option to hide their name if they so chose.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 25, 2018, 7:04pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/4 "2018-04-25T19:04:01Z")

</div>

May I use this space to reiterate my desire for the ability to hide privacy conscious users’ Full Name on their own user profile preferences if they so choose? 🙂 .

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2018, 7:10pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/5 "2018-04-25T19:10:38Z")

</div>

Full Name is optional by default - the user can choose to set it or not as they prefer.

In your case if you clear `sso overrides full name` it should accomplish what you’re trying to do.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 25, 2018, 7:15pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/6 "2018-04-25T19:15:01Z")

</div>

@supermathie Sorry I meant when using SSO. In our case we pass their Full Name in SSO by default. But we’de like to offer a way for users to “not” display their Full Name if they so choose. As it stands there is no way to do that when passing Full Names through SSO.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2018, 7:23pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/7 "2018-04-25T19:23:00Z")

</div>

As long as this option isn’t set:

![image](https://global.discourse-cdn.com/meta/original/3X/6/7/67c1c4139a265282b3367c37c97ddeb20d03af14.png)

then the user can change their full name as they see fit after initial sign-in and it won’t get overridden by subsequent SSO logins.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 25, 2018, 7:28pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/8 "2018-04-25T19:28:30Z")

</div>

Thanks for your reply @supermathie. Although I’m confused as to how that’s a potential solution. If we uncheck it, then any “new” users would not have their Names passed on, and if we leave it checked, users get their Names passed on but can’t change/delete it. In a situation like ours where SSO is always on, then there is no way for users to delete/hide their names.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2018, 7:35pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/9 "2018-04-25T19:35:11Z")

</div>

> [@Denis\_Heraud](#):
>
> If we uncheck it, then any “new” users would not have their Names passed on

Not sure why you quoted “new”, but new users get that value initially set from SSO.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 25, 2018, 7:37pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/10 "2018-04-25T19:37:55Z")

</div>

Sorry I quoted “new” because they may not be new in our own user database, but they may be new to our Discourse forum when they log into it for the first time. So if we don’t check that SSO box, then these users that log in for the first time won’t get their names passed along in SSO.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 25, 2018, 7:39pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/11 "2018-04-25T19:39:34Z")

</div>

> [@Denis\_Heraud](#):
>
> So if we don’t check that SSO box, then these users that log in for the first time won’t get their names passed along in SSO.

I had checked exactly that behaviour on my test SSO setup before suggesting that and the full name does get set in initial user creation even without that setting.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 25, 2018, 7:43pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/12 "2018-04-25T19:43:02Z")

</div>

Oh! Sorry! Though you can understand my confusion, that the name gets passed regardless of the setting being enabled or not. 😉 I’ll test that on my end!

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 26, 2018, 2:54pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/13 "2018-04-26T14:54:24Z")

</div>

> [@supermathie](#):
>
> I had checked exactly that behaviour on my test SSO setup before suggesting that and the full name does get set in initial user creation even without that setting.

I’m curious, how would we go about fetching the names for all of our other users that already have logged in in the past? Would they each have to log in again with the setting checked to pass their names along? And since that seems unlikely to happen, is there any other way to go about it? How would we fetch Names for all existing users without leaving the SSO option turned on?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 26, 2018, 3:02pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/14 "2018-04-26T15:02:12Z")

</div>

> [@Denis\_Heraud](#):
>
> how would we go about fetching the names for all of our other users that already have logged in in the past

You’re looking for the [user list](https://docs.discourse.org/#tag/Users%2Fpaths%2F~1admin~1users~1list~1%7Bflag%7D.json%2Fget)?

> [@Denis\_Heraud](#):
>
> Would they each have to log in again with the setting checked to pass their names along?

You can use the sync\_sso API as described here: [Sync DiscourseConnect user data with the sync\_sso route](https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398)

I’m not sure about whether updating a record using `sync_sso` obeys `sso_overrides_name` - you’ll need to test that.

> [@Denis\_Heraud](#):
>
> is there any other way to go about it

You can always use the [Admin API](https://docs.discourse.org/#tag/Admin) - I would first define your workflow and then search through the API to find the API endpoints you need to call to accomplish your goals - they’re all there.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 26, 2018, 3:07pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/15 "2018-04-26T15:07:46Z")

</div>

> [@supermathie](#):
>
> You can use the sync\_sso API as described here: Sync SSO user data with the sync\_sso route

Ooooh nice! I didn’t know you could do that! Many thanks! That basically solves it for me I think, I’ll have to test it out to confirm. Will update.

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [April 30, 2018, 4:22pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/16 "2018-04-30T16:22:38Z")

</div>

> [@supermathie](#):
>
> Full Name is optional by default - the user can choose to set it or not as they prefer.
> 
> In your case if you clear sso overrides full name it should accomplish what you’re trying to do.

Hey @supermathie, so I finally tested today. I created a new user and logged in with “sso overrides full name” disabled, and you’re right, the Full Name gets passed on the first time a user logs in.

However, your solution doesn’t work because although users can delete their name from that field in their preferences, you can’t save it because the field cannot be left blank… So back to square one, how does a user delete/hide their name if they don’t want it to show up after it gets passed by SSO on initial login?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [April 30, 2018, 6:52pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/17 "2018-04-30T18:52:11Z")

</div>

I suspect you have the `full_name_required` setting enabled on your site - disabling that will allow the users to blank it out.

(even if you didn’t they could change it to be whatever they want such as the same as their username)

---

<div class="post-metadata">

### Author: ![Denis\_Heraud](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denis_heraud/32/119623_2.png) [@Denis\_Heraud](https://meta.discourse.org/u/Denis_Heraud)
#### Post date: [May 1, 2018, 12:42pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/18 "2018-05-01T12:42:17Z")

</div>

> [@supermathie](#):
>
> I suspect you have the full\_name\_required setting enabled on your site - disabling that will allow the users to blank it out.

You are quite right sir! Thank you!

---

<div class="post-metadata">

### Author: ![Wall-E](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wall-e/32/184438_2.png) [@Wall-E](https://meta.discourse.org/u/Wall-E)
#### Post date: [February 3, 2021, 11:01pm UTC](https://meta.discourse.org/t/letting-users-choose-whether-to-show-full-name/85626/19 "2021-02-03T23:01:58Z")

</div>

This question is from 2018 and maybe things have changed.

- I have “full name required” checked.
- I disabled “enable names: _Show the user’s full name on their profile, user card, and emails. Disable to hide full name everywhere_”
- I let “display name on posts” checked - but they are not showing anyway due to the above option disabled that takes precedence I guess.

From this point, can a user have her/his full name displayed with her/his username when posting if (s)he decides so? Or is that a system-wide setting only?
