manage.py runscript --user ignored #10167

Closed
opened 2025-12-29 21:27:43 +01:00 by adam · 0 comments
Owner

Originally created by @XioNoX on GitHub (Aug 30, 2024).

Originally assigned to: @XioNoX on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.8

Python Version

3.11

Steps to Reproduce

  1. Create two superuser users (user1, user2)
  2. run a script through python manage.py runscript while specifying --user user2

Expected Behavior

The job should have been ran as the "user2".

Observed Behavior

The job is ran by the user with the lowest ID In our case user1.

Originally created by @XioNoX on GitHub (Aug 30, 2024). Originally assigned to: @XioNoX on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.8 ### Python Version 3.11 ### Steps to Reproduce 1. Create two superuser users (user1, user2) 2. run a script through `python manage.py runscript` while specifying `--user user2` ### Expected Behavior The job should have been ran as the "user2". ### Observed Behavior The job is ran by the user with the lowest ID In our case user1.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:27:43 +01:00
adam closed this issue 2025-12-29 21:27:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10167