Display friendly username in ChangeLog #6054

Closed
opened 2025-12-29 19:36:06 +01:00 by adam · 5 comments
Owner

Originally created by @mathieu-mp on GitHub (Feb 4, 2022).

Originally assigned to: @mathieu-mp on GitHub.

NetBox version

v3.1.7

Feature type

Change to existing functionality

Proposed functionality

Display friendly user name besides of its raw username, in Change Logs.

In ChangeLog tables, "username - 2020-06-23 14:41" would become "First Last (@username) - 2020-06-23 14:41"

Use case

We usually need to easily identify which real person is behind a username, to discuss a change with a team-mate or to solve an issue. In corporate Active Directory environment, we sometimes end up with dumb usernames, by chance this comes with the person real name. To display this person real name alongside with its raw username in ChangeLogs would ease this identification.

Database changes

None

External dependencies

None

Originally created by @mathieu-mp on GitHub (Feb 4, 2022). Originally assigned to: @mathieu-mp on GitHub. ### NetBox version v3.1.7 ### Feature type Change to existing functionality ### Proposed functionality Display friendly user name besides of its raw username, in Change Logs. In ChangeLog tables, "username - 2020-06-23 14:41" would become "First Last (@username) - 2020-06-23 14:41" ### Use case We usually need to easily identify which real person is behind a username, to discuss a change with a team-mate or to solve an issue. In corporate Active Directory environment, we sometimes end up with dumb usernames, by chance this comes with the person real name. To display this person real name alongside with its raw username in ChangeLogs would ease this identification. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 19:36:06 +01:00
adam closed this issue 2025-12-29 19:36:06 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 7, 2022):

In corporate Active Directory environment, we sometimes end up with dumb usernames, by chance this comes with the person real name.

In most cases, displaying the username is going to be sufficient. To accommodate your use case, it would be reasonable to add an alternative column which renders the user's complete name (where available) that can be swapped in for the default username. However, the current default of displaying on the username should be retained.

@jeremystretch commented on GitHub (Feb 7, 2022): > In corporate Active Directory environment, we sometimes end up with dumb usernames, by chance this comes with the person real name. In most cases, displaying the username is going to be sufficient. To accommodate your use case, it would be reasonable to add an alternative column which renders the user's complete name (where available) that can be swapped in for the default username. However, the current default of displaying on the username should be retained.
Author
Owner

@mathieu-mp commented on GitHub (Feb 7, 2022):

I like what you suggest @jeremystretch , and it sounds way better than what I implemented.

From the GUI at "Other > Change Log", I reconfigured the columns, but it doesn't seem to alter the changelog table as shown in the homepage. Can this be changed ?

Other question: Can we pre-configure tables for all users ?

@mathieu-mp commented on GitHub (Feb 7, 2022): I like what you suggest @jeremystretch , and it sounds way better than what I implemented. From the GUI at "Other > Change Log", I reconfigured the columns, but it doesn't seem to alter the changelog table as shown in the homepage. Can this be changed ? Other question: Can we pre-configure tables for all users ?
Author
Owner

@jeremystretch commented on GitHub (Feb 7, 2022):

From the GUI at "Other > Change Log", I reconfigured the columns, but it doesn't seem to alter the changelog table as shown in the homepage. Can this be changed ?

Yep, that's a bug; I've opened #8578 for that. (The dedicated change log view will render the table correctly but the home view does not.) Thanks for the catch!

Other question: Can we pre-configure tables for all users ?

This will be supported in NetBox v3.2 under FR #7759: Defining a DEFAULT_USER_PREFERENCES parameter will allow administrators to define the default columns and ordering for individual tables.

@jeremystretch commented on GitHub (Feb 7, 2022): > From the GUI at "Other > Change Log", I reconfigured the columns, but it doesn't seem to alter the changelog table as shown in the homepage. Can this be changed ? Yep, that's a bug; I've opened #8578 for that. (The dedicated change log view will render the table correctly but the home view does not.) Thanks for the catch! > Other question: Can we pre-configure tables for all users ? This will be supported in NetBox v3.2 under FR #7759: Defining a `DEFAULT_USER_PREFERENCES` parameter will allow administrators to define the default columns and ordering for individual tables.
Author
Owner

@mathieu-mp commented on GitHub (Feb 7, 2022):

I closed the former PR and opened a new one: #8581

@mathieu-mp commented on GitHub (Feb 7, 2022): I closed the former PR and opened a new one: #8581
Author
Owner

@mathieu-mp commented on GitHub (Feb 7, 2022):

However, the current default of displaying on the username should be retained.

I'm not sure if you were suggesting to hide "Full Name" column by default, but I couldn't find how to do it, so I PR'ed with both columns, "Full Name" beeing placed just after "Username".

@mathieu-mp commented on GitHub (Feb 7, 2022): > However, the current default of displaying on the username should be retained. I'm not sure if you were suggesting to hide "Full Name" column by default, but I couldn't find how to do it, so I PR'ed with both columns, "Full Name" beeing placed just after "Username".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6054