When updating an existing key for a user, if there are no other activated user keys, the operation should not be allowed. This should be done on both API view and model form.
Use case
Currently, the operation updates and the user key and deactivates the access for the user and as the last user with the key, the secrets become unretrievable.
NetBox version
v3.4.4
Feature type
Add a function
Proposed functionality
When updating an existing key for a user, if there are no other activated user keys, the operation should not be allowed. This should be done on both API view and model form.
Use case
Currently, the operation updates and the user key and deactivates the access for the user and as the last user with the key, the secrets become unretrievable.
External dependencies
No response