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
Vamsee KaramchetiVamsee Karamcheti 

2 users A and B under same profile and Role. How can I restrict records of A to B and Vise versa

Hi Buddies,

I have a doubt in SFDC. We have 2 users A and B under same profile and Role. How can I restrict records of A to B and Vise versa.

 
veda shriveda shri
Hi Vamsee,

In profile set View all data and modify all date permission to 'false'. This will restric user to access data created by other users.

Please let me know if any other help.

Thanks,
vedashri
SandhyaSandhya (Salesforce Developers) 
Hi Vamshee,

If you make owd as private, then each user can see only his records
If you make owd as public read-only, then users can see each other data but cannot edit or modify.

Please refer below link.

https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/security_data_access.htm


Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
veda shriveda shri
Hi,

Are you able to slove get answer? please let me know if any help.

Thanks,
Vedashri