Is there a way to hide the username from the mentions list?

In our community, we have a subset of users that have their email address as their username. The usernames are populated via an SSO connector, so users cannot immediately edit their usernames themselves through their profiles. This was mentioned by one of our community members as a possible GDPR/data privacy concern.

Due to this, I was wondering if there's a way to edit the @mention list in an effort to only show displaynames and not usernames. This appears different for different users, for example, you can see different user names in the first picture below but no username on my account in the second picture (I assume this is my display name being the same as my username?):

I haven't seen anything in the admin menu to change how the usernames are displayed and don't see this list in the widget studio or anywhere else in the interface menu. Any attempts from the theme side seem like it would remove the whole name and avatar, not just a section of the name. @tom

I realize also that the username ends up being the user profile URL, but this mention list would be a good start at least in fixing this. 

Any suggestions? 

Parents Reply
  • Usernames are the only thing in that list that make a user unique.  By removing them you run into the issue where several users use the same display name or similar(this is allowed) in which case the user becomes indistinguishable from others.

    It has always been the recommendation to never use email as a username because it is an information disclosure vulnerability as information that the platform protects as private is being made public and not just here.

Children