User.groups.add() or Group.users.add()?
#20907
Unanswered
markkuleinio
asked this question in
Q&A
Replies: 1 comment
-
|
Following, that reminds me One for adding a user to a group, the other one to add a group to an user ? Note : I have no experience with nbshell sorry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a meaningful difference between
the_user.groups.add(the_group)andthe_group.users.add(the_user), which one should be preferred?Btw
UserandGroupare not documented in https://github.com/netbox-community/netbox/blob/main/docs/development/models.md, should they be?Beta Was this translation helpful? Give feedback.
All reactions