ข้ามไปยังเนื้อหา

Watching the Door: Troubleshooting and Audit

เนื้อหานี้ยังไม่มีในภาษาของคุณ

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.

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

Here’s the chapter’s picture: who’s affected tells you what it usually is, and where to look first.

Who's affected tells you where to look first Who's affected tells you what it usually is, and where to look first. Before all four: get in first, through the back door, chapter 4. One user: usually her record, a Federation ID, a permission, an old phone number or a lockout; look first at Login History, filtered to her. One app or one door: usually its setting, a callback URL, a certificate, a policy, who may use it; look first at the error the app got, and Login History for that app. Everyone: usually something everyone shares, the identity provider down, a certificate, the clocks, a setting; look first at the identity provider's own logs, and the failure's name in Login History. Since a date: usually a change; look first at the Setup Audit Trail, 180 days. Footnote: a starting point, not a rule; Salesforce Help and knowledge articles, checked 2026-11-06. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-20", "id": "DGM-IAM-TRB-01", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} WHO'S AFFECTED USUALLY LOOK FIRST Get in first the back door · ch 4 One user Her record Federation ID, a permission, an old phone, a lockout Login History filtered to her One app or one door Its setting callback URL, certificate, policy, who may use it The error the app got and Login History for that app Everyone Something they share identity provider down, certificate, clocks, a setting The identity provider's logs and the failure's name in Login History Since a date A change Setup Audit Trail 180 days usually look at usually look at usually look at usually look at A starting point, not a rule. Salesforce Help and knowledge articles, checked 2026-11-06. HOW TO READ IT always first find the change © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Six modules, and a practice.

  1. 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.
  2. What Salesforce Writes Down Login History, Identity Verification History and the Identity Provider Event Log, and how long each keeps its records.
  3. Watching the Wire SAML Tracer on a failure; the OAuth error the app got; JIT errors in the URL; debug logs for your handlers.
  4. 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.
  5. Who Did What: Audit During and After Login Five audit questions, what every org has, and what the add-on adds.
  6. 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.

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

Each module lists its own sources, each checked 2026-11-06. Two to start with:

Next: Agents and Identity: a new kind of user at the door.