Skip to content

Permission Constrains with custom fields #6581

Answered by candlerb
PieterL75 asked this question in Q&A
Discussion options

You must be logged in to vote

The database field is called custom_field_data not cf (cf is just a python property). See #6478. That implies {"tenant__custom_field_data__snow_account_number": "12345"}

However the error suggests you're trying to restrict access to something that doesn't have a "tenant" field anyway. Can you show a more complete extract of your configuration? And what Netbox version are you running?

Aside: I agree for your use case that a stable, immutable reference is required. There is indeed some uncertainty around slugs, and in any case they are mutable. Could you just use the netbox tenant id instead (i.e. the database-assigned integer)? It won't change unless the tenant is deleted and recreated. Bu…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@PieterL75
Comment options

@PieterL75
Comment options

@candlerb
Comment options

@PieterL75
Comment options

@taher1333
Comment options

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