Hi -first post so go easy on me.
I am trying to set up the read protect on my sample application.
I have a list of customers. Each customer has a list of monitoring operations.
so I have a customer BO, and a MonitorOperation BO where Customer owns multiple Monitor Operations
I want the users to be able to login and see the customers and monitoring operations that belong to them
I then made a customer attribute (called AllowedCustomers) on the regular user which is a peer relationship. So one regular user can be linked to multiple customers. The customer has a matching attribute called AllowedUsers
Now my approach was:
- when a customer is created, he/she is added by a rule into the user customer list
- This should cause the customer modified event to fire
- I have a another rule that checks when the customer.allowedusers has changed, when it is changed, I wanted to read protect all users not in the allowedusers list. I was going to do this by doing a find users where user not in the allowed users list. This (according to the doco) loads all of the users into the context, then in the next action, read protect users. (btw I mean the RegularUsers BO)
This doesn't seem to be supported 🙁
I only seem to be able to protect based on access levels, not individual users.
I don't want customers to show up in any searches for users that don't have the access to those customers.
I also don't want customer's MonitorOperations to show up in any searches where the owning customer is not in the user's list of allowed customers.
Is there a way to do what I want?
Thanks
Peter