用户名与姓名

Is there a way to allow a user to choose what gets displayed when they post in the forum? We would like our users to be able to choose between using either the Username or Name field. We’ve had some questions around privacy since it defaults to their username. Thanks!

Users do not specifically determine what is shown, this will be determined by your site settings in different places.

User cards & profiles

The three elements to juggle are:

  1. Full name
    This is the ‘real name’ and you can make it required or not. If you are worried about privacy, then you might not ask for it. Alternatively, you could collect it but hide it by unchecking the enable names option

  2. Username
    This is required for Discourse to operate

  3. Priority
    You can de-emphasise names by prioritising usernames, or you can turn this off to focus on the real name

Another useful option is to disable user cards and profiles for anonymous users. In combination with the security below, only logged-in users will see more personal data

Posts

If the data exists and is available, you can enable this setting for posts (or not enable it for privacy)

One thing to bear in mind, is that when the username and the real name are the ‘same’ (ignoring spaces), the second element will be hidden to avoid duplication, so for example:

My username robmc is different from my full name

… while my colleague’s matches

Hi Robert,

If I want to remove the username from showing up and only display the Name field would I deselect “prioritize username in the UX”?

Thanks
Sean

I need to go and check whether this is possible. Discourse uses usernames as a default for many things, including traffic referral, mentions, and so on, so hiding this entirely does not seem entirely possible, or sensible.

Can I ask what you mean by this statement, as I’ve been confused

Surely a username is MORE private than a real name? Can you please explain the use-case?

用户名只有在用户最初选择了私密的用户名时才会更加私密。如果用户后来决定希望使用一个不泄露其隐私信息、也不公开标识其身份的用户名,系统无法对此进行修正(更改用户名并非受支持的功能),这与可编辑的姓名字段不同。有时,如果用户名是通过单点登录(SSO)自动填充的,用户甚至无法直接控制自己的用户名。我认为你的意思是,对于那些在开始时能够做出选择且后续没有理由改变主意的用户来说,用户名会更加私密——这似乎对弱势群体不够友好。

我质疑这个设计选择,请将其设为站点设置。(请参阅我在 Feature request: make the "deduplication" of name vs. user name a site setting 的评论)