I am subscribing to platform events in apex trigger. In the trigger I am trying to post to user's chatter feed using Chatter Connect API. I am aware that in this case the context is "Automated Process". When executing Chatter Connect REST API, I am receving error: Insufficient Privileges: The Connect API is not enabled for this user type.
If I replace chatter REST API calls with insert on FeedItem, chatter post works successfully.
I need to work with chatter connect APIs as I have a complicated chatter post format, involving EntityLink, Rich Text, images etc..
Does anyone know how to use Chatter Connect REST APi for "Automated Process" user context ? I also tried running the code as "without sharing" but that didn't help either.