Hi,
We want to setup a privacy rule where the user has to be a member of the team to which the ticket is related. So I was expecting to do: When do a search for team member where user = current user and topic = ticket’s topic >0
However, there is no do a search here. I can only make the rule directly related to the ticket or the current user.
Yup, what Adam said. So, you could add a teams field (list of teams) to the User data type, and then create a rule on the Ticket data type that says when Current User's teams contains This Ticket's team.
This is likely the best DB structure for the app even if you could configure privacy rules however you want… If you’re doing searches for something like this then it’s going to cost heaps of WU and run slowly.
Right I get it but roles and security are complex. In our app our tickets have various degrees of data visibility depending on the relationship of the current user with the ticket. We have various teams each with different roles within the team, we have ticket shares with guests who can view the ticket and all these are managed via related data tables. They’re not as simple as 1:1 relationship between current user and data thing.
So now I’m kind of trying to fit a round peg in a square hole. Let’s see if I can work that out.