How to use constaint created_by $user #12021
Unanswered
corentinFaucher
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello,
I am a beginner with Netbox and I am looking to put a constraint on resources to isolate users.
I found this in the documentation :
{ "created_by": "$user" }
But I have the following error when I try to apply this constraint :
Invalid filter for <class 'virtualization.models.virtualmachines.VirtualMachine'>: Cannot resolve keyword 'created_by' into field. Choices are: _name, cluster, cluster_id, comments, contacts, created, custom_field_data, description, device, device_id, disk, id, interfaces, journal_entries, last_updated, local_context_data, memory, name, platform, platform_id, primary_ip4, primary_ip4_id, primary_ip6, primary_ip6_id, role, role_id, services, site, site_id, status, tagged_items, tags, tenant, tenant_id, vcpus
I try it with a simple permission on virtualmachine only with all rights (read/create/edit/remove).
I'm using Netbox 3.4.5
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions