I'm developing a B2 that creates CSV content and saves that content as a file to the content system, and am encountering issues when the logged in user does not have adequate permissions to read/write to the containing folder -- user's should not be able to access these created files.
Is there a means to temporarily elevate a user's context permission or an "authorized" method in reading/writing these files?
In testing, it appears "ContentSystemServiceFactory.getInstance().getSessionDocumentManager()" will create a file in the content system being owned by SYSTEM.
I understand this is a private API, so do use it at risk.