Allow creating user without password using REST API #1

Open
opened 2026-04-05 16:21:10 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @llamafilm on 4/3/2026

NetBox version

v4.4.6

Feature type

Change to existing functionality

Proposed functionality

It should be possible to create a user without a password using the REST API (and thus using pynetbox).

Use case

Passwords are not necessary for SSO users. The underlying User model does not require a password, so it's already possible to create such users using nbshell. This just requires a small change to the API serializer, so if password is not provided then it runs user.set_unusable_password() instead of user.set_password().

Database changes

none

External dependencies

No response

*Originally created by @llamafilm on 4/3/2026* ### NetBox version v4.4.6 ### Feature type Change to existing functionality ### Proposed functionality It should be possible to create a user without a password using the REST API (and thus using pynetbox). ### Use case Passwords are not necessary for SSO users. The underlying User model does not require a password, so it's already possible to create such users using nbshell. This just requires a small change to the API serializer, so if `password` is not provided then it runs `user.set_unusable_password()` instead of `user.set_password()`. ### Database changes none ### External dependencies _No response_
MrUnknownDE added the type: featurestatus: needs triagenetbox labels 2026-04-05 16:21:10 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1