Teammate Display Name configuration does not match what is displayed

Description

Environment

  • Mattermost Server: 5.18.1

Steps to Reproduce

1. Verify that Account Settings > Display > Teammate Name Display is set to Show nickname if one exists, otherwise show first and last name
2. Set another user to have the first and last name Alice Evans and the nickname Bob Evans

Expected Behavior

Only the nickname is displayed, e.g. Bob Evans

Observed Behavior

The user's first and last name are displayed with the nickname in parentheses, e.g. Alice Evans (Bob Evans)

Details

Customer is using this to override the legal names of users that are synced via LDAP. Several users have undergone gender transition, and do not like seeing their new real name in parentheses after their deadname.

Proposed Fixes

1. Rename this configuration option to better reflect what is displayed
2. Add an option to only display the nickname and not the first and last name

QA Test Steps

None

Reporter

None

Status

Mana

4

Assignee

Hossein Ahmadian

QA Assignee

None

Reporter

Paul Rothrock

Epic Link

None

Fix versions

Mattermost Team

Enterprise

Labels

QA Testing Areas

None

GitHub Issue

None

Components

None
Configure