Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full File, Private entry
How-to guide

How to keep a Salesforce File Private

Keeping a File Private is straightforward: upload without sharing, do not link to records or groups. The platform maintains Private state until you explicitly share.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated May 21, 2026

Keeping a File Private is straightforward: upload without sharing, do not link to records or groups. The platform maintains Private state until you explicitly share.

  1. Upload via the Files tab, not a record

    Open the Files tab from App Launcher. Click Upload Files. Pick the file. The platform creates the File with you as Owner and no other links; the file is Private.

  2. Confirm the privacy state

    After upload, open the file. The privacy state appears in the file details (Private). Confirm no other users or records appear in the sharing list.

  3. Avoid drag-and-drop on record pages

    Dragging a file onto an Account or Opportunity page links it to that record. If you want the file Private, upload through the Files tab instead.

  4. Decide when to share

    When ready to share, use the file Share dialog to add Collaborators or Viewers. The state changes to Privately Shared.

  5. Revoke sharing to return to Private

    Remove all ContentDocumentLink records other than your own. The file returns to Private state. The transition is automatic; you do not flip a state field directly.

  6. Audit your Private Files regularly

    Use the Files tab''s Private filter to see your Private Files. Old files no longer needed can be deleted; in-progress files might be shared once ready.

Key options
Upload to Files tabremember

Default starting point for Private Files. No record context, no shares created.

Upload to a recordremember

Auto-creates a link to the record, transitioning to Privately Shared.

Revoke all sharingremember

Returns a shared file to Private state by removing all non-Owner ContentDocumentLink records.

Library publishingremember

Different from sharing. Publishing to a Library transitions the file to that Library''s access model.

Gotchas
  • Files uploaded on record pages are not Private. They auto-link to the record; users with record access see the file.
  • System admins with Modify All Data can access Private Files. The override exists for compliance and emergency access.
  • Files Connect external files have their own privacy. Salesforce-side Private state does not extend to SharePoint or Google Drive originals.
  • Private state is computed from ContentDocumentLink records. Apex or API actions that create unexpected links can transition a Private file without obvious UI indication.

See the full File, Private entry

File, Private includes the definition, worked example, deep dive, related terms, and a quiz.