I have noticed that delegated user logins (i.e. when a managed package admin logs in via grant login access) show up in the downloaded setup audit trail, but do not show up in a SOQL query of the SetupAuditTrail object. This is referenced in the previous question here. Is there any documentation for this discrepancy? The linked question's answer is unclear on this point, and I want to be able to document that using the query does not unintentionally exclude any other results.

1 Answer 1


This appears to be documented as a known issue. Summary:

Setup Audit Trail API not logging Login-As login event, only Login-As logout event

This is marked as having no fix, and unfortunately the workaround they suggest is getting the CSV via UI.

  • Note that the issue has been fixed as suggested by mentioned link.
    – metasync
    Commented Apr 12, 2022 at 19:37
  • @metasync What link? Because the known issue I linked to still has it marked as "No Fix". Commented Apr 13, 2022 at 14:06
  • Nevermind, I misunderstood the status icon. I was trying to process some customer data and noticed Login-As events. So thought it might have been fixed.
    – metasync
    Commented Apr 14, 2022 at 20:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .