You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to define constraints for accessing network ressources by reading their assigned contacts. I first tried using tenants and tenant groups, but they are not flexible enough due to their strict hierarchical nature (only one parent allowed).
For example, I can access assigned contacts in constraints via __contacts. But how can I check its elements? For example I want to filter somewhat like this:
But instead of checking that one specific site, I want to filter all sites that contain a contact assignment with the given name. I don't how to write that query and I don't know how to translate that query into constraints JSON.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to define constraints for accessing network ressources by reading their assigned contacts. I first tried using tenants and tenant groups, but they are not flexible enough due to their strict hierarchical nature (only one parent allowed).
For example, I can access assigned contacts in constraints via __contacts. But how can I check its elements? For example I want to filter somewhat like this:
Site.objects.get(name="test-a-1").contacts.get(contact__name="test-contact") <ContactAssignment: test-contact -> test-a-1>
But instead of checking that one specific site, I want to filter all sites that contain a contact assignment with the given name. I don't how to write that query and I don't know how to translate that query into constraints JSON.
Beta Was this translation helpful? Give feedback.
All reactions