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
ajay ambatiajay ambati 

accesss levels

iam having the 4 users p1,p2,p3,p4 and p1 one created 15 feilds and he wnt to share 15 records only to p2 user not to others users like p3 and p4 how can u do this? 
1,i done wit owd public read/write but it will applicying for all users
2,when iam using manual sharing only one record  can access to another user or public groups
3,role level is nt possible
so,i tried all the above, not working plss give the detail navigation answers for this?
 
Naval Sharma4Naval Sharma4
Hi Ajay,

This can be achieved using apex sharing. You can write your apex code in trigger and based on your criteria share the records with appropriate users.
AG_SFDCAG_SFDC
Hello,

You can achieve this by sharing rules.

Try the following:
Create 2 public groups, In Group1 add user p1 and in group 2 add user p2. Now go to sharing setting for the object and create a owner based sharing rule (Share group 1 with group 2).

Let me know if it helped you!

Thanks,
AG