Controlling attachment permissions in Kinetic

Has anybody figured out how to control permissions to add/delete attachments by the related to file and the user’s security group in Kinetic?

  • 2024.2
  • On premise
  • Sharepoint attachments

Things I have tried:

  • There are no ui hooks to the attachment panel or anything in it like the add or delete button and the trace shows no events that fire when you click anything in there

  • Can’t use service security because its too broad (only want to control attachments to one specific table not all)

  • In-transaction data directive on the Attachments BO - does not fire on either DeleteFile or DeleteByID

  • Pre-processing bpm on the update method on the table - it does fire, but the attachment gets deleted anyway

  • In transaction data directive on XFileAttch - it does fire, but the attachment gets deleted anyway

    Surely there has to be a way to do this, right???

4 Likes

I’m sorry I don’t have any ideas to offer but I’ll be watching this thread for when I do need it.

1 Like

Have you looked at the Ice.AttachmentSvc? There are some promising SharePoint methods that might help:

  • SpUploadFile - Upload file to Sharepoint and store metadata

  • SpDownloadFile - Download file and its metadata from SharePoint

  • SpGetMetadata

  • SpUpdateMetadata - Update metadata for Sharepoint file

  • SpDeleteFile - Delete file from SharePoint

  • SpFileExists - Check if file exists on the sharepoint site

3 Likes