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

security issue, different sets of users under same profile?

i have a requirement, three sets of users, multiple users in group1,multiples in group2 similarly in group3, belonging to different geographical locations but all the group of users under same profile,
lets assume group1 users belongs to US
                   group2 users belongs to UK
                   group3 users belongs to AU, but all of the users within those three groups are sharing same profile,
now the problem is, when a record is created by a user from group1,only the the group1 users should have access to that record even though the other group of users sharing the same profile, 
any suggestion or stating steps to be followed will be highly appreciated

SonamSonam (Salesforce Developers) 
You could use criteria based sharing if you can have a custom field which could mark which group the user belongs to: