Unable to create contact with same name and group but with different email #6583

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

Originally created by @abhi1693 on GitHub (Jun 22, 2022).

NetBox version

v3.2.5

Python version

3.9

Steps to Reproduce

  1. Create a contact group named CG1
  2. Create a contact with the following properties
name: Abhimanyu
group: CG1
email: abhi1@gmail.com
  1. Create another contact with the following properties
name: Abhimanyu
group: CG1
email: abhi2@gmail.com

Expected Behavior

I should be able to create a contact with a different email address with the same name and group

Observed Behavior

Unable to create a contact as the unique constraint set on name and group does not allow it

Originally created by @abhi1693 on GitHub (Jun 22, 2022). ### NetBox version v3.2.5 ### Python version 3.9 ### Steps to Reproduce 1. Create a contact group named `CG1` 2. Create a contact with the following properties ``` name: Abhimanyu group: CG1 email: abhi1@gmail.com ``` 3. Create another contact with the following properties ``` name: Abhimanyu group: CG1 email: abhi2@gmail.com ``` ### Expected Behavior I should be able to create a contact with a different email address with the same name and group ### Observed Behavior Unable to create a contact as the unique constraint set on `name` and `group` does not allow it
adam closed this issue 2025-12-29 19:42:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 22, 2022):

This is desired behavior to protect against duplication. Each contact within a group must have a unique name.

@jeremystretch commented on GitHub (Jun 22, 2022): This is desired behavior to protect against duplication. Each contact within a group must have a unique name.
Author
Owner

@abhi1693 commented on GitHub (Jun 22, 2022):

That I understand, but how do I add two tenants with the same name and group? The have different resources allocated to them

@abhi1693 commented on GitHub (Jun 22, 2022): That I understand, but how do I add two tenants with the same name and group? The have different resources allocated to them
Author
Owner

@DanSheps commented on GitHub (Jul 2, 2022):

Are they the same person?

Try to find a way to differentiate their names perhaps?

@DanSheps commented on GitHub (Jul 2, 2022): Are they the same person? Try to find a way to differentiate their names perhaps?
Author
Owner

@abhi1693 commented on GitHub (Jul 2, 2022):

@DanSheps Those are different people. This information comes from a 3rd party application which handles invoicing for us. So, we cannot even make changes to the name or email otherwise the same would reflect on their invoices.

@abhi1693 commented on GitHub (Jul 2, 2022): @DanSheps Those are different people. This information comes from a 3rd party application which handles invoicing for us. So, we cannot even make changes to the name or email otherwise the same would reflect on their invoices.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6583