Error “Guest users are not permitted to perform this operation” while creating chatter post in flow


This error takes place when flow runs in the context of a Guest User – like Record is being created from public site or public webhook etc.


This happens because Guest User is not allowed to create chatter post i.e. Feed Post.

There are possible below approaches:

1) Using Platform Event : Guest user can publish platform events. So you just have to Write a trigger on platform Event that will insert a FeedItem i.e Chatter Post.

2) Using Apex Email Service: Guest user execution will send an email to an email alias and this email alias will be associated with an apex service, which will create chatter post. Here is more details how to use email apex service:

We help companies to setup productive and efficient email, chatter and Slack notification, please read more about us: