You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prologue
I wrote a custom script, which changes some object during run. Change logging implemented as mentioned in the docs.
The situation
I run my script via the CLI, it makes changes to some device interface object (let's call it A). Then I view the changelog of A in the web interface, and I see that this change was made by the user whose ID is the smallest in NetBox users table (i.e. the first registered user, admin).
The question
How is the author of changes to an object determined when running scripts via the CLI? Can I set a specific registered user as the author of the changes made by my script when starting my script using CLI?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Prologue
I wrote a custom script, which changes some object during run. Change logging implemented as mentioned in the docs.
The situation
I run my script via the CLI, it makes changes to some device interface object (let's call it A). Then I view the changelog of A in the web interface, and I see that this change was made by the user whose ID is the smallest in NetBox users table (i.e. the first registered user, admin).
The question
How is the author of changes to an object determined when running scripts via the CLI? Can I set a specific registered user as the author of the changes made by my script when starting my script using CLI?
Beta Was this translation helpful? Give feedback.
All reactions