Setup
Grant these before you write any code. Every method fails with an access error without them.
A caller - Apex running user, or the running user of a flow - requires both:
- Files API Access custom permission (
sliick__SliickFilesAPI). Ships enabled in the SliickFilesAdmin permission set. For other users, add the custom permission to a permission set. - Data access - the SliickFilesUser permission set, or equivalent
CRUD/FLS on
sliick__Cloud_File__candsliick__Cloud_File_Link__c. All queries and DML run inUSER_MODE; record-level sharing applies per item.
The custom permission is the entitlement gate. The sharing model governs which records and files each call can act on.