Watching the Door: Troubleshooting and Audit
Esta página aún no está disponible en tu idioma.
Chapter 16 of Securing Salesforce: Identity and Access, Part 3: Customers, Partners and Agents. It draws on every door in chapters 4 to 15; chapter 6, module 7 is the first look at single sign-on failures that this chapter widens.
Identity breaks quietly and all at once. Single sign-on works for months, then a certificate expires or a clock drifts, and nobody can log in, sometimes including the people who could fix it. An integration runs every night for a year, then a token is revoked and it stops without a word. And few people on a project touch identity, for a few weeks, so nobody has practiced finding the fault.
It’s the auto mechanic from chapter 1: 5 dollars to turn the screw, and 295 to know which screw. This chapter is about knowing which screw. It gives you a method that works for any door, the places Salesforce writes things down, how to watch a login on the wire, the failures that come back again and again, how to show who did what, and how to act on a login as it happens.
The ideas in this chapter
Section titled “The ideas in this chapter”- Get in first. Every fix starts with someone who can still log in: the back door from chapter 4.
- Who, how many, since when. One user is usually her record; one app, its setting; everyone, something they share; since a date, a change, and the Setup Audit Trail has it.
- Look where the failure is written down, in the system that refused: Login History, Identity Verification History, the Identity Provider Event Log, the other side’s logs.
- Every door shows its error somewhere on the wire: the SAML assertion, the OAuth error on the callback URL, the token endpoint’s answer, the JIT error in the URL, a handler’s debug log.
- The same few failures come back, and each leaves the same marks.
- Every log has a horizon. Six months, 180 days, one day. Download what you must keep.
- Every org can answer most audit questions for a while; Shield or the Event Monitoring add-on keeps more, longer, and can act.
- A rule at the door can lock the door. Watch a login policy before it blocks anyone, and keep at least one user on Salesforce’s own login outside it.
The picture
Section titled “The picture”Here’s the chapter’s picture: who’s affected tells you what it usually is, and where to look first.
The path through this chapter
Section titled “The path through this chapter”Six modules, and a practice.
- Which Screw? A Method for Any Login Failure Three questions, in order; Salesforce’s own order; no login attempt at all is a clue too.
- What Salesforce Writes Down Login History, Identity Verification History and the Identity Provider Event Log, and how long each keeps its records.
- Watching the Wire SAML Tracer on a failure; the OAuth error the app got; JIT errors in the URL; debug logs for your handlers.
- The Usual Failures, Every Mechanism Chapter 6’s five in a line each, then the rest: one user, one app, the people you didn’t expect, and dates on Salesforce’s calendar.
- Who Did What: Audit During and After Login Five audit questions, what every org has, and what the add-on adds.
- Transaction Security at the Door A login policy: what it sees, what it does, what it can’t, and when to use a login flow or a session level instead.
Then the practice: break four logins in your lab orgs on purpose, find each one, and write the one-page runbook.
Check what stuck with the study guide.
What an architect decides here
Section titled “What an architect decides here”- The back door, checked before the bad day.
- Who looks first, and in what order, and who owns the other side’s logs.
- How long login and setup records are kept, and who downloads them.
- One calendar for certificates, token policies, license headroom and Salesforce’s enforcement dates.
- Whether you need Event Monitoring, and a login policy, decided with the security team.
Beyond the exam: what AI changes. Agents come through the same doors, so their failures and their changes land in the same logs; Setup with Agentforce already shows its changes in the Setup Audit Trail. Chapter 17 asks who the agent was acting for.
Explore
Section titled “Explore”Each module lists its own sources, each checked 2026-11-06. Two to start with:
- How to Troubleshoot SSO Login Issues for a User in Salesforce (opens in a new tab) (Salesforce knowledge article; checked 2026-11-21)
- Monitor Login History (opens in a new tab) (Salesforce Help; checked 2026-11-21)
Next: Agents and Identity: a new kind of user at the door.
