Loading

Setup Audit Trail Shows “Salesforce, Inc.” in User Column but SetupAuditTrail SOQL Returns Blank CreatedBy

Fecha de publicación: Oct 8, 2026
Descripción

The View Setup Audit Trail page and the downloaded CSV file show “Salesforce, Inc.” in the User column for an entry, but a SOQL query against SetupAuditTrail returns a blank CreatedBy.Name for the same entry.

This is expected for entries created by system or automated processes rather than a specific user. Examples can include Salesforce releases, enablement of a Salesforce-managed package or feature, and background jobs.

Changes made through Login As access are different: the DelegateUser field contains the username of the person who made the change.

Solución

1. Query SetupAuditTrail:

   SELECT CreatedDate, CreatedById, CreatedBy.Name, DelegateUser, Action, Section, Display, ResponsibleNamespacePrefix
   FROM SetupAuditTrail
   WHERE CreatedDate = LAST_N_DAYS:30
   ORDER BY CreatedDate DESC

2. Use Display, Section, and Action to identify the change. Display matches the Action column in the UI, and Section matches the Section column.

3. Match the row to the UI or CSV entry by timestamp. SOQL returns CreatedDate in UTC; the UI uses your time zone.

4. If DelegateUser is populated, the change was made through Login As. If it’s blank and the UI shows “Salesforce, Inc.“, the change was system-initiated. If ResponsibleNamespacePrefix is populated, the change came from that managed package.

For audit or compliance reviews, a blank CreatedBy.Name doesn’t by itself mean the entry is missing its originating actor or is incomplete.

Recursos adicionales

Monitor Setup Changes with Setup Audit Trail (Salesforce Help)
https://help.salesforce.com/s/articleView?id=sf.admin_monitorsetup.htm&type=5

SetupAuditTrail (Object Reference for the Salesforce Platform)
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_setupaudittrail.htm

Número del artículo de conocimiento

005461289

 
Cargando
Salesforce Help | Article