Require password change on first login when creating new users #6438

Closed
opened 2025-12-29 19:40:43 +01:00 by adam · 6 comments
Owner

Originally created by @emersonfelipesp on GitHub (May 3, 2022).

NetBox version

v3.2.3-dev

Feature type

New functionality

Proposed functionality

The functionality is to allow new users recently registered on Netbox by the administrator to change its own password when doing the first login.
I don't know if it is maybe a "Django issue" or something like that, as we currently use Django Admin to create new Netbox accounts.

But I will let below an example of how it would be great to have on Netbox:
When checking the option Require password change on first login the field name of Password changes to Temporary Password (I got it from requarks.io)


image

Use case

When adding new users, I don't think it is secure to have Netbox user password known by the Netbox admin in some way.
I think that other than just funcionality, it improves security.

Database changes

No response

External dependencies

No response

Originally created by @emersonfelipesp on GitHub (May 3, 2022). ### NetBox version v3.2.3-dev ### Feature type New functionality ### Proposed functionality The functionality is to **allow new users** recently registered on Netbox by the administrator **to change its own password when doing the first login**. I don't know if it is maybe a "Django issue" or something like that, as we currently use Django Admin to create new Netbox accounts. But I will let below an example of how it would be great to have on Netbox: When checking the option **Require password change on first login** the field name of **Password** changes to **Temporary Password** (I got it from requarks.io) <br> ![image](https://user-images.githubusercontent.com/24397251/166341885-12c7c126-41a6-4d0b-8110-e790df0707e9.png) ### Use case When adding new users, I don't think it is secure to have Netbox user password known by the Netbox admin in some way. I think that other than just funcionality, it improves security. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:40:43 +01:00
adam closed this issue 2025-12-29 19:40:43 +01:00
Author
Owner

@DanSheps commented on GitHub (May 3, 2022):

I believe this would require overriding the default DJango user class. You should try and expand your implementation details more if you can.

@DanSheps commented on GitHub (May 3, 2022): I believe this would require overriding the default DJango user class. You should try and expand your implementation details more if you can.
Author
Owner

@emersonfelipesp commented on GitHub (May 5, 2022):

I believe this would require overriding the default DJango user class. You should try and expand your implementation details more if you can.

Indeed it is something more like a Django feature than a Netbox feature. I will try to implement it and come back with some code.

I am going to look if there is a Django DEP about it and maybe create one, or at least discuss about it on Django Developers mailing list

@emersonfelipesp commented on GitHub (May 5, 2022): > I believe this would require overriding the default DJango user class. You should try and expand your implementation details more if you can. Indeed it is something more like a Django feature than a Netbox feature. I will try to implement it and come back with some code. I am going to look if there is a [Django DEP](https://github.com/django/deps/blob/main/final/0001-dep-process.rst) about it and maybe create one, or at least discuss about it on [Django Developers mailing list](https://groups.google.com/g/django-developers)
Author
Owner

@jeremystretch commented on GitHub (May 12, 2022):

This definitely sounds like a generic feature that should be implemented upstream in Django, rather than something we shoehorn in. Let us know how it goes @emersonfelipesp! If you don't get anywhere upstream we can revisit.

@jeremystretch commented on GitHub (May 12, 2022): This definitely sounds like a generic feature that should be implemented upstream in Django, rather than something we shoehorn in. Let us know how it goes @emersonfelipesp! If you don't get anywhere upstream we can revisit.
Author
Owner

@emersonfelipesp commented on GitHub (May 12, 2022):

If you don't get anywhere upstream we can revisit.

I have just created a discussion there and I will comeback here to update you about it!

@emersonfelipesp commented on GitHub (May 12, 2022): > If you don't get anywhere upstream we can revisit. I have just created a discussion there and I will comeback here to update you about it!
Author
Owner

@DanSheps commented on GitHub (May 13, 2022):

Could you link the discussion here, just for reference?

@DanSheps commented on GitHub (May 13, 2022): Could you link the discussion here, just for reference?
Author
Owner

@emersonfelipesp commented on GitHub (May 13, 2022):

Could you link the discussion here, just for reference?

It's here: [Django Developers Group] Require password change on first login when creating new users

I haven't put a lot of information, but I think it is easy to get the point of what the feature should do.

@emersonfelipesp commented on GitHub (May 13, 2022): > Could you link the discussion here, just for reference? It's here: [[Django Developers Group] Require password change on first login when creating new users ](https://groups.google.com/g/django-developers/c/7X_DYrkQgZI) I haven't put a lot of information, but I think it is easy to get the point of what the feature should do.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6438