Add "Last Login" to per user view and API output #9259

Closed
opened 2025-12-29 20:47:34 +01:00 by adam · 2 comments
Owner

Originally created by @zacho112 on GitHub (Feb 16, 2024).

Originally assigned to: @zacho112 on GitHub.

NetBox version

v3.7.2

Feature type

Change to existing functionality

Proposed functionality

Expose the last_login in the specific user view (GUI), as well as include it in the API response api/users/users/, just as date_joined.

Use case

Ease user management/cleanup. Data is already present in the DB, just not visible via API.

Database changes

No response

External dependencies

No response

Originally created by @zacho112 on GitHub (Feb 16, 2024). Originally assigned to: @zacho112 on GitHub. ### NetBox version v3.7.2 ### Feature type Change to existing functionality ### Proposed functionality Expose the `last_login` in the specific user view (GUI), as well as include it in the API response `api/users/users/`, just as `date_joined`. ### Use case Ease user management/cleanup. Data is already present in the DB, just not visible via API. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:47:34 +01:00
adam closed this issue 2025-12-29 20:47:35 +01:00
Author
Owner

@zacho112 commented on GitHub (Feb 19, 2024):

I guess this is a fairly simple changes to the template files user/user.html and maybe also account/profile.html, and the users/api/serializers.py

I can provide the PR my self if needed

@zacho112 commented on GitHub (Feb 19, 2024): I guess this is a fairly simple changes to the template files `user/user.html` and maybe also `account/profile.html`, and the `users/api/serializers.py` I can provide the PR my self if needed
Author
Owner

@jeremystretch commented on GitHub (Feb 20, 2024):

Assigned to you @zacho112, thanks for volunteering.

@jeremystretch commented on GitHub (Feb 20, 2024): Assigned to you @zacho112, thanks for volunteering.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9259