Skip to content

Can you make Tenants a Requirement? #5956

Answered by proudbro
eduncan911 asked this question in Q&A
Discussion options

You must be logged in to vote

You can add new permission for example for devices (dcim.add/change/delete_device) with constraint such as:
{"tenant__id__isnull": false}
And apply it to users or/and groups of users

Now you cannot create/edit/delete devices without the mandatory filling tenant field

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@eduncan911
Comment options

Comment options

You must be logged in to vote
2 replies
@eduncan911
Comment options

@PieterL75
Comment options

Answer selected by eduncan911
Comment options

You must be logged in to vote
1 reply
@jeremystretch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants