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
nagarjuna gurajanagarjuna guraja 

Batch Apex example

Hello Everyone,
We have two objects A and B, Both are on same role and same profile. Both have masterdetail relationship. A have 10 B1 records. User 1 have both view and edit access to all 10 records but User 2 have view access and edit access only 5 Records.By using which type of sharing model should we achieve that?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

You can make OWD as private and share the 10 records to the user1 using sharing rule and share the 5 records with user 2 using sharing rule.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,