Which Screw? A Method for Any Login Failure
Deze inhoud is nog niet vertaald.
Module 1 of 6 in the chapter Watching the Door: Troubleshooting and Audit, chapter 16 of Securing Salesforce: Identity and Access. Each module stands on its own.
The question this module answers: A login failed. Where do you start, for any kind of door?
Five dollars to turn the screw
Section titled “Five dollars to turn the screw”You may remember the auto mechanic from chapter 1. He listens to the car, turns one screw, and charges 300 dollars: “It’s 5 dollars to turn the screw, and 295 to know which screw, and how much to turn it.”
Identity is like that. Single sign-on has very few settings: some URLs, a certificate, a few checkboxes. OAuth has a callback URL, a few policies, a token. But every one of them has to be exactly right, and when one is wrong, the user sees the same thing: she can’t get in. The fix is usually small. Finding it is the work.
Chapter 6 gave single sign-on its first look: Login History, then the SAML Assertion Validator, then five usual causes. This chapter widens that to every door in the course: SAML, OAuth, a site, a social login, a handler you wrote. It starts with a method, because the method is what stays the same when the door changes.
Three questions, in this order
Section titled “Three questions, in this order”1. Can someone still get in? Before you look for the cause, make sure the people who can fix it can log in. That’s the back door from chapter 4, module 5: admins with a Salesforce password and MFA, the My Domain login page, and ?login if the form has gone. If single sign-on is broken for everyone and the admins use single sign-on too, nobody can open Setup to look. So this question comes first, every time.
2. Who is affected, how many, and since when? The answer narrows the search before you open a single log.
- One user. Usually it’s something about that user: her record, her Federation ID, a permission she doesn’t have, a phone number that’s out of date, a lockout.
- One app, or one door. Usually it’s that app’s setting: a callback URL, a certificate, a policy, who’s allowed to use it.
- Everyone. Usually it’s something everyone shares: the identity provider is down, its certificate expired, the clocks drifted, or someone changed a setting.
- Since a date. Something changed on that date. Find the change.
For “since when,” Salesforce keeps a record of changes to Setup: the Setup Audit Trail. It shows the 20 most recent changes on the page, and you can download 180 days of them (S3). Many of the changes that close a door are in it: certificates added or deleted, My Domain changes, SAML settings, identity providers, single sign-on enabled or disabled for a profile, login hours, session settings, and some connected app and external client app policy changes (S3). If everyone stopped logging in on Tuesday, look at what changed on Monday. Module 5 comes back to it for audit.
3. Where is the failure written down? Every refusal is written down somewhere, by the system that refused. When Salesforce refuses, look in Salesforce. When the identity provider refuses, look in the identity provider’s logs. When an OAuth request fails, the error comes back to the app on its callback URL. Module 2 is where Salesforce writes things down, and module 3 is how to watch the messages as they go past.
Salesforce’s own order
Section titled “Salesforce’s own order”Salesforce publishes its own order for these, and it’s close to the same. For a user who can’t log in, its admin guide says: “Check the user’s Login History in Setup before proceeding” (K1). For single sign-on, its knowledge article walks through the usual causes in order: does the user have the permission for single sign-on, does the Federation ID match exactly, are the assertion’s attributes right, has the identity provider’s certificate expired. Then it says to capture the assertion “with a SAML tracing tool such as the SAML Tracer browser extension,” and to check the identity provider’s own logs (K2).
Two things in those articles are worth knowing before you need them.
The Federation ID must match exactly. In Salesforce’s words: “A difference in case or whitespace will cause login to fail” (K2). priya@example.com and Priya@example.com are different values, and so is a value with a space at the end that nobody can see. Chapter 6, module 5 is where the Federation ID finds the user; this is how it fails.
No login attempt at all is a clue too. If a user says she can’t log in, and Login History shows nothing for her, the request never reached Salesforce as her. Salesforce’s guide points to the username: a typo, an old username saved in the browser, or invisible characters copied in with it (K1). With single sign-on, nothing in Login History can also mean the failure happened before Salesforce: at the identity provider, which is the next place to look.
Write it down as you go
Section titled “Write it down as you go”Look at what the three questions do. Each one throws away most of the possible causes before you start. One user, since this morning, nothing in the Setup Audit Trail: it’s almost certainly about her, and you start with her Login History. Everyone, since last night, a certificate uploaded yesterday: you probably know the screw already.
And whatever you find, write it down. Chapter 6 asked you to keep one page for your single sign-on. Keep it for every door, with the symptom, where it showed, the cause and the fix. The practice at the end of this chapter builds that page from four failures you cause on purpose.
Test knowledge. In my experience, be ready to troubleshoot the common single sign-on failure points, for SAML and OAuth: know where to start (Login History), what to ask (one user or everyone, since when), and where each side writes its failures down.
What’s next
Section titled “What’s next”Module 2: what Salesforce writes down. Login History, Identity Verification History and the Identity Provider Event Log, read in depth.
What an architect decides here
Section titled “What an architect decides here”- The back door, checked before the bad day, not on it.
- Who looks first, and in what order: get in, who and since when, then where it’s written down.
- Who owns the other side’s logs, and how to reach them during an outage.
- The one page for every door, kept up to date as you find things.
Explore
Section titled “Explore”- Admin Guide: Resolve User Login Problems (opens in a new tab) (Salesforce knowledge article; checked 2026-11-21)
- How to Troubleshoot SSO Login Issues for a User in Salesforce (opens in a new tab) (Salesforce knowledge article; checked 2026-11-21)
- Monitor Setup Changes with Setup Audit Trail (opens in a new tab) (Salesforce Help; checked 2026-11-21)
