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
ANSHU SINGH 21ANSHU SINGH 21 

How can I restrict access to records based on location? For ex. if India and US are 2 locations, I want India people to see records of India and US people can see US records only. How to achieve that?

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Anshu,

You need to create public groups for India and US. and create 2 sharing rule one for US and another for INDIA as below .

User-added image
If this solution helps, Please mark it as best answer.

Thanks,