Information about the User who modified the object #6371

Closed
opened 2025-12-29 19:39:56 +01:00 by adam · 4 comments
Owner

Originally created by @top1ing on GitHub (Apr 18, 2022).

NetBox version

v3.2.1

Feature type

New functionality

Proposed functionality

In addition to "created" and "last_updated" info in objects would be useful add "modified_by_user" with username who modified the object in last time.

Use case

Usage different NetBox user for external scripts (e.g. "script_user") and "modified_by_user" in webhook conditional logic to prevent unneccesary webhook re-triggering in case where script change something of NetBox object.
{ "and": [ { "attr": "modified_by_user", "value": "script_user", "negate": true } ] }

For example, we are trying to use webhook for autocreating, updating and deleting host in NMS when a device is changed in NetBox. For better integration, after create host in NMS script add value of NMS_host_id in NetBox Device custom field "NMS_HOST_ID". But this leads to another generation of the Update event and the unneccesary Webhook trigerring.

Database changes

No response

External dependencies

No response

Originally created by @top1ing on GitHub (Apr 18, 2022). ### NetBox version v3.2.1 ### Feature type New functionality ### Proposed functionality In addition to "created" and "last_updated" info in objects would be useful add "modified_by_user" with username who modified the object in last time. ### Use case Usage different NetBox user for external scripts (e.g. "script_user") and "modified_by_user" in webhook conditional logic to prevent unneccesary webhook re-triggering in case where script change something of NetBox object. `{ "and": [ { "attr": "modified_by_user", "value": "script_user", "negate": true } ] } ` For example, we are trying to use webhook for autocreating, updating and deleting host in NMS when a device is changed in NetBox. For better integration, after create host in NMS script add value of NMS_host_id in NetBox Device custom field "NMS_HOST_ID". But this leads to another generation of the Update event and the unneccesary Webhook trigerring. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurepending closurestatus: under review labels 2025-12-29 19:39:56 +01:00
adam closed this issue 2025-12-29 19:39:56 +01:00
Author
Owner

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

Doesn't the changelog for objects already store this information, through a couple intermediate links?

@sc68cal commented on GitHub (May 3, 2022): Doesn't the changelog for objects already store this information, through a couple intermediate links?
Author
Owner

@top1ing commented on GitHub (May 4, 2022):

This is true.
But the idea was to use a webhook conditional logic to prevent retrigerring webhook target.
Actually, for what webhook conditional logic is used.

@top1ing commented on GitHub (May 4, 2022): This is true. But the idea was to use a webhook conditional logic to prevent retrigerring webhook target. Actually, for what webhook conditional logic is used.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jul 4, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Aug 3, 2022):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Aug 3, 2022): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6371