How do you audit file access in Salesforce external storage?

To audit file access in Salesforce external storage, you need to combine Salesforce’s native event logging with the access controls and audit tools provided by your external storage provider. Neither system alone gives you a complete picture. The sections below walk through each part of that process, from understanding what counts as external storage to setting up continuous monitoring.

What counts as external storage in Salesforce?

External storage in Salesforce refers to any file repository that sits outside Salesforce’s native storage environment but connects to it through an integration or API. This includes cloud platforms like Amazon S3, SharePoint, Google Drive, and other third-party repositories that Salesforce accesses through tools like Files Connect or custom integrations.

The key distinction is where the file physically lives. When a document is stored in Salesforce natively, it lives within Salesforce’s own infrastructure. When it is stored externally, Salesforce holds a reference or metadata pointer to the file, while the actual content resides on a separate system. This split is important for auditing because it means access events can be recorded in two separate places or, in some configurations, in neither.

Common examples of external storage setups include organizations that offload large document libraries to Amazon S3 to reduce storage costs, teams using SharePoint for Office 365 collaboration while linking documents back to Salesforce records, and media or real estate companies that store high-volume assets in cloud buckets connected to their CRM.

Where does Salesforce log file access events?

Salesforce logs file access events primarily through Event Monitoring, a feature available in higher-tier Salesforce editions. Event Monitoring captures a range of user activity, including document views, downloads, and content delivery events, and stores them as log files that can be accessed via the EventLogFile object in the Salesforce API.

Within Event Monitoring, the most relevant log types for file access are:

  • Content Document events: Track when users view or download files stored natively in Salesforce Content
  • Content Distribution events: Record when files are shared externally via public links
  • Login and session events: Provide context on who was active and when, useful for correlating with file access
  • API events: Capture programmatic access to files, which is relevant when integrations pull documents from Salesforce

These logs are retained for a defined period depending on your Salesforce edition and configuration. Administrators can query them directly or route them to a SIEM tool for longer retention and analysis. The limitation is that these logs only capture what happens within Salesforce’s own layer. Once a file is retrieved from or stored in an external system, the activity moves outside this log scope.

How do you audit access to files stored outside Salesforce?

To audit access to files stored outside Salesforce, you need to use the audit and logging capabilities of the external storage provider directly. Each platform maintains its own access logs, and you must enable and configure those logs separately from anything Salesforce provides.

For Amazon S3, AWS CloudTrail records every API call made to your S3 buckets, including who accessed a file, from which IP address, and at what time. S3 Server Access Logging provides a more granular record of individual object-level requests. Both need to be explicitly enabled in your AWS account.

For SharePoint and OneDrive, the Microsoft Purview compliance portal provides audit logs that capture file access, sharing events, and permission changes. These logs are accessible to administrators and can be exported for review.

The challenge is that these external logs do not automatically reference the Salesforce record or user that triggered the access. If a Salesforce workflow retrieves a file from S3, the S3 log records the API call but not the Salesforce context. Bridging that gap requires either a custom integration layer that passes identifiers or a document management solution that maintains a unified access trail across both systems.

Hi, how are you doing?
Can I ask you something?
Hi! I see you're exploring how to audit file access in Salesforce external storage. Many Operations and Compliance teams in document-intensive industries run into exactly this challenge. Which best describes your current situation?
That makes sense — you're not alone. Teams managing high volumes of documents across Salesforce and external storage like Amazon S3 often hit the same wall: two systems logging independently with no unified view. Which of these are relevant to your setup?
Based on what you've shared, it sounds like Cartularius could be a strong fit — it's built specifically to bridge the audit gap between Salesforce and external storage like S3, giving your team a single, unified access trail without building a custom logging infrastructure. Let's connect you with someone who can walk you through how it works for your setup.
You're all set! Your information has been received and our team will review your request. Someone will reach out to discuss your document audit and storage setup in Salesforce. Thank you for your interest in Cartularius!
In the meantime, feel free to explore our document management features and storage plans at cartularius.com.

What tools can pull file access data from both systems?

Tools that pull file access data from both Salesforce and external storage generally fall into three categories: SIEM platforms, dedicated compliance tools, and document management solutions with built-in audit capabilities. The right choice depends on your organization’s existing infrastructure and compliance requirements.

SIEM platforms

Security Information and Event Management tools like Splunk, Microsoft Sentinel, and IBM QRadar can ingest logs from both Salesforce Event Monitoring and external storage providers. Once connected, they allow you to correlate events across systems, set alerts, and maintain long-term audit archives. These tools are powerful but typically require dedicated IT resources to configure and maintain.

Document management solutions

Document management platforms integrated directly into Salesforce can provide a unified audit trail without requiring a separate SIEM deployment. Because they sit between Salesforce and the external storage layer, they can log access events at the point of interaction and associate them with the relevant Salesforce record, user, and timestamp in a single view. This approach is especially practical for operations teams that need compliance visibility without building a complex logging infrastructure.

Why do audit gaps appear in Salesforce external storage setups?

Audit gaps in Salesforce external storage setups appear because the two systems log activity independently, and there is no automatic mechanism to link those records. When a user opens a file through Salesforce that is physically stored in an external system, the event may be partially recorded in one log, partially in another, or missed entirely depending on how the integration is configured.

Several factors contribute to these gaps. First, many organizations enable external storage integrations without reviewing the default logging settings on the external platform. AWS S3 logging, for example, is not enabled by default. Second, service accounts or integration users often perform file retrieval operations that are attributed to a system identity rather than the individual end user, making it difficult to trace who actually accessed a document. Third, when files are accessed through embedded previews or third-party viewers, those interactions may not register as a formal access event in either system.

Understanding document value management principles helps organizations identify which documents are high-risk and prioritize closing audit gaps where they matter most.

Who should have access to file audit logs in Salesforce?

Access to file audit logs in Salesforce should be limited to a defined set of roles with a legitimate need to review access records. Broadly, that includes system administrators, compliance officers, security teams, and, in regulated industries, designated data protection personnel.

Restricting log access is itself a compliance consideration. Audit logs contain sensitive metadata about user behavior, and unrestricted access to those records creates its own governance risk. In practice, most organizations apply a tiered model:

  1. System administrators manage log configuration and retention settings
  2. Compliance or legal teams access logs during audits, investigations, or regulatory reviews
  3. Security analysts monitor logs in real time or through automated alerts for anomalous behavior
  4. Operations managers may receive summarized reports without direct access to raw log data

Salesforce permission sets and profiles control who can query EventLogFile objects. For external storage logs, access is managed through the respective platform’s IAM or role-based access controls. Aligning those permissions across both systems is a step that organizations often overlook during initial setup.

How do you set up ongoing file access monitoring in Salesforce?

Setting up ongoing file access monitoring in Salesforce requires enabling Event Monitoring, configuring log retention, connecting external storage audit logs, and establishing a review process. This is not a one-time task but an ongoing operational practice that needs to be maintained as your storage environment evolves.

Start by confirming that Event Monitoring is active on your Salesforce org and that the relevant event types are enabled. Next, enable server access logging on any external storage buckets or SharePoint sites connected to Salesforce. Route those logs to a centralized location, whether that is a SIEM tool, a cloud storage archive, or a document management platform that aggregates them for you.

From there, define what you are monitoring for. Common triggers include access to sensitive document categories, downloads by users outside expected roles, access at unusual hours, or bulk retrieval events that could indicate data exfiltration. Set up automated alerts for those patterns rather than relying on manual log reviews.

Review your document management features periodically to ensure your monitoring setup keeps pace with changes in your storage architecture, user base, or compliance requirements. Organizations that treat audit monitoring as a living process rather than a one-time configuration are far better positioned when an audit or incident review occurs.

How Cartularius helps with auditing file access in Salesforce external storage

We built Cartularius to close exactly the kind of audit gaps described throughout this article. Because Cartularius operates as a document management layer directly inside Salesforce, it maintains a unified access trail that spans both Salesforce records and connected external storage, including Amazon S3. Every file interaction is logged in context, meaning you can see which user accessed a document, which Salesforce record it was associated with, and when the event occurred, all from a single location.

Here is what that means in practice for teams managing document access compliance:

  • Centralized audit trail: File access events are recorded at the Cartularius layer, bridging the gap between Salesforce activity logs and external storage logs
  • Amazon S3 integration: Documents offloaded to your own S3 environment remain fully trackable within Salesforce, with no loss of visibility or access history
  • Role-based access controls: Permissions are managed within Salesforce, so access to sensitive documents and their audit records follows your existing governance structure
  • Scalable storage without compliance trade-offs: Moving files to S3 reduces storage costs without sacrificing the document access tracking your compliance team needs

If your team is managing high volumes of documents across Salesforce and external storage and needs a cleaner audit trail without building a custom logging infrastructure, explore our storage and compliance plans to find the right fit for your organization.

Table Of Contents

Share this post

Enjoy a 30-day trial and transform your workflow today

Install Cartularius now and experience the best Salesforce document management solution and enjoy clean and structured data and optimized processes, risk-free for 30 days.

Discover the power of Cartularius in a personalized demo. Our experts will showcase live examples tailored to your business. Get your questions answered and see how our solution streamlines collaboration and accelerates processes. Schedule your demo today and unlock smarter document management.

Get the list

Please provide us with your Name, Job Title and Email Address and you will receive the complete predefined list of Document Categories and Document Types in your inbox.

Get Quote (Enterprises)

Please provide us with as much relevant detail on your needs as possible at this stage in the form below. We understand your business is unique and we would very much like to get you the best offer possible. Thank you!

Get Quote (Non-Profit)

Please provide us with as much relevant detail on your needs as possible at this stage in the form below. We understand your business is unique and we would very much like to get you the best offer possible. Thank you!