Hello,
Imagine this scenario: I have a thing called “Organization”. It has a list of users.
Now, I want to create privacy rules so that a user is only able to see users that are members of the same organization.
I cannot do a search here. I can only access the User object and the current user.
As far as I can see, I have to “flip” the data model, so that a User has the field “Organization”:
That would allow me to do this:
It does not seem really intuitive to me. Every time I want to access the users of an organization, I have to do a search. Wouldn’t that be slower than just listing the users from a field on the organization?