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
D_M_CD_M_C 

Share Field/Record only with people within same Group

I'd like users to be able to share data (in custom fields within standard objects or in custom objects) with other users within groups they belong to but have that data hidden from users not in the group(s).  Is this possible?

 

Note: This should be dynamic such that it works for all groups, not just a single group.

 

If it is not possible with Groups, can it be accomplished with Roles or Profiles?

Best Answer chosen by Admin (Salesforce Developers) 
JitendraJitendra

Hi,

For record, you can use the Apex based Sharing.

However i dont think that there is any out of the box functionality available to show hide fields other than field level security.

 

You can go ahead with creation of Custom VF page and show hide the field on the basis of your criteria.

 

For Apex based Sharing:

http://shivasoft.in/blog/salesforce/apex-based-sharing-in-salesforce/