Users in Custom Script #9539
-
Hello, I want to develop a Custom Script,where I need the Users in an "ObjectVar". section namename = 'Allocate contacts to devices' class allocatecontacts2device(Script):
` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
My understanding of custom scripts is that ObjectVar only applies to netbox models. User being a django model, I doubt this is possible. Looking at your example however, it seems that you are trying to use "User" in place of "Contact" which should be a legit netbox model in an ObjectVar script variable. Beware that using contacts implies using contact roles and contact assignments. Syncing User table and Contact table is a totally different issue of course :) |
Beta Was this translation helpful? Give feedback.
My understanding of custom scripts is that ObjectVar only applies to netbox models. User being a django model, I doubt this is possible.
Looking at your example however, it seems that you are trying to use "User" in place of "Contact" which should be a legit netbox model in an ObjectVar script variable. Beware that using contacts implies using contact roles and contact assignments.
Syncing User table and Contact table is a totally different issue of course :)