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
Hello,
with the release https://github.com/netbox-community/netbox/releases/tag/v4.3.0 there is the breaking change The group foreign key on the Contact model has been replaced with a many-to-many groups field.
I understand there are usecases for this change. We use it as field for a primary group to unix users.
Unfortunally I am now looking for a way to limit this field back to many-1 relation (one user can be member of one group but one group has several members).
As a beginner I think the solution would be permissions and constraints: https://netboxlabs.com/docs/netbox/administration/permissions/#constraints but I am not able to find a way to limit the count of the memberhips of a user (I dont know django - can only adapt some code).
Am I looking on the right settings (maybe there is a setting to turn the behaviour back)? And could someone please push me a bit further to the solution?
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.
-
Hello,
with the release https://github.com/netbox-community/netbox/releases/tag/v4.3.0 there is the breaking change
The group foreign key on the Contact model has been replaced with a many-to-many groups field.
I understand there are usecases for this change. We use it as field for a primary group to unix users.
Unfortunally I am now looking for a way to limit this field back to many-1 relation (one user can be member of one group but one group has several members).
As a beginner I think the solution would be permissions and constraints: https://netboxlabs.com/docs/netbox/administration/permissions/#constraints but I am not able to find a way to limit the count of the memberhips of a user (I dont know django - can only adapt some code).
Am I looking on the right settings (maybe there is a setting to turn the behaviour back)? And could someone please push me a bit further to the solution?
Beta Was this translation helpful? Give feedback.
All reactions