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
Mhlangano Khumalo 7Mhlangano Khumalo 7 

How to control chatter feed posts visibility on a record in SF

I have customers, partners & employee users, each with their own profile. All 3 of them update the same chatter feed on a record. I want customers to only see what employees post, employees to see what both partners & employees post and for partners to only see what employees post.

How can I achieve this requirement?
Best Answer chosen by Mhlangano Khumalo 7
NagendraNagendra (Salesforce Developers) 
Hi Khumalo,

Internal Employees can restrict the visibility of the post in Chatter feed that is either of the following:
  • Organization users
  • All with Access
For Customers and Partners do not have this option to restrict the visibility.
User-added image
So, a record is accessible by Customer, partner, and the employee then if Customer or Partner posts on chatter feed then Customer and partner can see the post.

The following picture shows how Customer, partner, and employee can see the post.
User-added image
Finally, your requirement cannot be achieved by OOTB.

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Khumalo,

Internal Employees can restrict the visibility of the post in Chatter feed that is either of the following:
  • Organization users
  • All with Access
For Customers and Partners do not have this option to restrict the visibility.
User-added image
So, a record is accessible by Customer, partner, and the employee then if Customer or Partner posts on chatter feed then Customer and partner can see the post.

The following picture shows how Customer, partner, and employee can see the post.
User-added image
Finally, your requirement cannot be achieved by OOTB.

Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
This was selected as the best answer
Mhlangano Khumalo 7Mhlangano Khumalo 7
Thank you! @Nagendra
pavan Kumar.vpavan Kumar.v
HI Nagendra,
CAN THIS BE ACHEIVED BY APEX? OR FLOWS.
BECAUSE I DONT SEE HAT WORKING 
if(feedItemRecord.CreatedById == '005f4000004zl8mAAA' || feedItemRecord.CreatedById == '0056N000001QahNQAS ')
                {
                    feedItemRecord.Visibility = 'AllUsers'; 
                    feedItemRecord.Status = 'Published';
                }

ITS NOT WORKING, CAN YOU PLEASE GUIDE ME ON THIS?
Amanda GustafsonAmanda Gustafson
I think you need lowercase allUsers