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
Narendra Reddy 13Narendra Reddy 13 

how to restrict to users see their own accounts only

Hi Everyone, anybody can help me out to restrict to particuler users see their own accounts only.

Ex: I have Force.com Profile, it is assigned to A and B user. I need to restrict these users see their own accounts only.
Harish RamachandruniHarish Ramachandruni
Hi,

Owd Settings to change as private and add sharing role for owner equals to user .

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_understanding.htm

Regards ,
Harish.R