I am trying to inserting Feed-Item with Attachment.
I know that I have to the put Image File into Content and get the Content-Version Id. I can use the Content Version Id to reference in RelatedToID and this inserts a record with attachment in Community.
When i tried to feeditem with attachment by my userID (insertedbyId), its working. (As all files are mass uploaded by me and i am owner of all 100 files).
But for such records where insertedbyId is other user, its failing. Giving below error.
You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.
The problem seems to be as you state: the user trying to create the feed item doesn't have access to the file.
But how to give user access to 500 files which i had uploaded ?