Skip to content

Add ability to assign contact groups to an object #17050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
goteamkor opened this issue Jul 31, 2024 · 4 comments
Open

Add ability to assign contact groups to an object #17050

goteamkor opened this issue Jul 31, 2024 · 4 comments
Labels
complexity: medium Requires a substantial but not unusual amount of effort to implement netbox status: backlog Awaiting selection for work type: feature Introduction of new functionality to the application

Comments

@goteamkor
Copy link

goteamkor commented Jul 31, 2024

NetBox version

v4.0.7

Feature type

New functionality

Proposed functionality

Currently it is only possible to add a specific contact to an object (vm, ip, circuit, etc.). Please allow the ability to add a contact
group rather than only a single contact.

EDIT: as part of this same request, please add the ability to have a contact group have the same data associated with it as a contact.
IE: telephone number, email address, etc.

Use case

In many cases, objects (routers for example), are managed by an entire team. If I have a team of 5 network engineers, I want to let the rest of the users of netbox know that the network engineering 'team' is a technical contact for a switch/router. I don't want to have to add each team member. And if I replace a network engineer I've got hundreds/thousands of objects I need to update.

This has been discussed before here: #8359 here: #15064 and here: #9088
but it doesn't appear it ever made it into a FR (I searched beforehand, but couldn't find anything)

Database changes

I do not believe a new model is required, but objects are very likely configured to reference a contact id specifically, rather than a group_id.

External dependencies

No response

@goteamkor goteamkor added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Jul 31, 2024
@goteamkor goteamkor changed the title Add ability to assign contract groups to an object Add ability to assign contact groups to an object Jul 31, 2024
@goteamkor
Copy link
Author

Right now, the workaround that I use, and I imagine most everyone else is using too is to create a 'contact' that just has the first name and last name as the name of the group/team you want to reference.

This works, but in my opinion is messy. It would make more sense to be able to leverage the contact groups model that already exists.

@alehaa
Copy link
Contributor

alehaa commented Aug 1, 2024

My assumption was that contact groups categorize contacts, e.g. "External" or "HR".

I somehow think this FR might get complicated. You might as well assign all switches to a tenant "NOC" and add the contacts to that tenant. However, this could result in conflicts when a device is managed by tenant A but managed for tenant B. And it would be hard to distinguish between contact groups and tenants.

@goteamkor
Copy link
Author

goteamkor commented Aug 2, 2024

Your assumption is correct. Contact groups categorize contacts.

If I have 5 network engineer contacts in the contact group "Network Engineering" which is a child group of the contact group "IT Operations" which is a child group of "Internal"

Internal

  • IT Operations
    -- Network Engineering
    -- Systems Engineering
  • Human Resources
    -- Payroll

Vendors

  • Palo Alto
  • Cisco

This is an example of how my contact groups are laid out. I'm not sure why you brought tenants into the conversation. This FR scope is not to alter existing methodologies of tenants, tags, or anything else. NetBox already has contact groups. The FR is simply to add the functionality to assign not only contacts to an object (when the use case calls for an individual that is responsible for an object), but also a contact group (when the use case calls for multiple people that have a shared responsibility for an object).

Can you add the multiple people with the shared responsibility already? Sure you can. But if one of those people leaves and you hire a new network engineer, I've got hundreds or thousands of objects to update. If it's the contact group that is assigned, I only have 1 object to change (the contact group)

Since NetBox's intent is to model the real world, objects are sometimes managed not by any 1 person, or multiple named people, but by a group/team/department. Adding 5 people, 10 people, or 15 people inside a NOC or network engineer team onto hundreds of router objects is a bit burdensome.

@DanSheps DanSheps added status: backlog Awaiting selection for work complexity: medium Requires a substantial but not unusual amount of effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer labels Aug 2, 2024
@DanSheps DanSheps removed their assignment Aug 2, 2024
@goteamkor
Copy link
Author

I've found another work around.
If you create a custom field as type 'object', and associate it with the related object type of 'tenancy > contact group' you sort of get most of the capability of this FR.

The problem though is you lose other valuable metadata for the contact association like 'role', 'priority', etc.

@jeremystretch jeremystretch added the netbox label Nov 1, 2024 — with Linear
@netbox-community netbox-community deleted a comment from erickvtorres May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: medium Requires a substantial but not unusual amount of effort to implement netbox status: backlog Awaiting selection for work type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

4 participants