netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.09k stars 2.58k forks source link

Add an "owner" field to all primary objects #988

Closed jeremystretch closed 3 years ago

jeremystretch commented 7 years ago

Issue type: Feature request

Originally proposed by @CassioFabius in #979. This would entail adding a new optional ForeignKey field pointing to the User model. Each primary object type (listed below) could be assigned an owning user. Proposed objects include:

arbor-bdoyle commented 7 years ago

What permissions do you predict being needed to change the Owner field? Our current system has a Reserved For field to track who is using a given test device in the lab, and it changes fairly frequently. We don't have any permissions around changing the field, as it mostly serves to ensure that people don't accidentally clobber boxes that other people are using with automated scripts, or to track down who is currently using a box if you're curious. It would be neat if we could keep this process but also adopt Owner.

specialcircumstances commented 7 years ago

Would you propose that the object is inherited if not set... Similar to how tenant is inherited for prefixes?

candlerb commented 7 years ago

This records a single 'owner' against an item. I think it would be useful if:

MalfuncEddie commented 4 years ago

Hi,

I suspect this feature originated from itil practices. If so I would replace "owner" with "accountable" and add responsible.

In itil these are not the same. http://www.itsmprofessor.net/2011/01/accountable-or-responsible.html

PS: I also needed this and solved this by using custom fields (accountable & responsible).

jeremystretch commented 3 years ago

With the addition of object-based permissions in v2.9, this doesn't seem particularly useful anymore: the new permissions offer a much more flexible approach to designating "ownership" of objects. I'm going to close this issue, but if anyone still has a need for it, please open a new FR citing your specific use case.