function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sumit@TCSSumit@TCS 

Sharing Rule Question

In Specific country there will be two set of different profile users working in parallel for a period of time and suppose both of them need to use same application, they’ll handle different product, is it possible to limit those users to  access in application by product? As there will be risk if they can see each other’s case records in application. They are

In specific country, two vendors working parallel for two different products. We need to hide their cases from each other based on products.

Products:-  access of set of products(P1) for Countrry C1
Users :-   Different profile users can view only those cases related to P1

More Info - Suppose we have two set of vendors V1 and V2 and they have access on products P1 and P2.

Vender V1 created a case C1 and V2 created C2. we need to hide case C2 (created by V2)  from V1 and vice
bob_buzzardbob_buzzard
You should be able to do this via a combination of Criteria Based Sharing Rules and the role hierarchy or public groups - any case from a particular product set can be shared with all members of a public group who work with that product set.  You'll need to make your Org Wide Default for cases Private.  If there are a small number of products, you can just set up the rules based on the product. However, there is currently a limit of 50 criteria based sharing rules per sobject, so you may need to define these by product set and include a product set field on the case sobject.