Michael Hamann I don't think we should do that. We already have the configuration we need. That is user.display.qualifierProperty. If you need more control over the qualifier you can add a computed property to the user profile class and indicate this new property as qualifier.
The advantage of what I propose is that it offers a lot more freedom. It allows you, to, e.g., reverse the order of first and last name, to display the username before first and last name, add a middle name between first and last name, add a title attribute before the name, …
Note that if we change XWiki.getUsername as I proposed, the qualifier would be additionally displayed where it is currently already used and we also have code, e.g., for group members that already displays the username after the user's name. Further, there is code that doesn't use XWiki.getUsername but uses custom formatting, in particular for mentions and for the password reset email - I didn't find more in XWiki itself but I might have missed some places.
Marius Dumitru Florea Do you also suggest to modify XWiki.getUsername or where would you use user.display.qualifierProperty?
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.