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.
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.
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
005461289

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.