You need to sign in to do that
Don't have an account?
How to restrict the User to write into publicGroup only through UI
Hi All
- The ACB Public chatter group how can we disable the capability for a user to Post new feed.
- Post feed are only created though the workflow. How can we handle this
the below code doesnot allows user to write post in public group
trigger RestrictChatterPost on FeedItem (Before Insert)
{
CollaborationGroup lstgroup = [SELECT id, name FROM CollaborationGroup WHERE CollaborationGroup.Name = 'xyz' LIMIT 1];
for(FeedItem a : Trigger.New)
{
if(a.parentid == 'Sfd00000000Ceh3')
a.addError('You are NOT allowed to post in this chatter Group!');
}
}
This code is also restricting to post after the approval process(back end)..
my requirement: I just want to restrict user to write from UI.
Please Suggest me. Thank you
Not sure how you post through Workflow,...