Zum Inhalt springen

Study guide

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Study guide for chapter 16 of the Securing Salesforce: Identity and Access course. Read the six modules first; this page helps you check what stuck.

About this study guide. It’s built only from this course’s own content and the published Salesforce exam guide’s list of objectives. It is never based on real exam questions, and it doesn’t claim to know what’s on the exam. If you’ve taken the exam, please don’t send me questions from it: the certification agreement forbids sharing them, and memorizing answers is the wrong way to become an architect anyway.

This chapter carries three of the Identity and Access Management Architect exam’s objectives, one from each of three sections: troubleshooting common single sign-on failure points (Identity Management Concepts, 17% of the exam); auditing and monitoring approaches, and tools to diagnose issues (Accepting Third-Party Identity in Salesforce, 21%); and tools to audit and verify user activity during and after login (Access Management Best Practices, 15%). The exam guide aligns to Summer ‘23. Check its current version before you book.

Tick them off as you go. Each one links to where it’s taught.

A method (supports IDC-5)

The logs (supports TPI-5 and AMB-3)

  • I know what Login History records, for the org and its sites, and that it keeps 6 months. (Login History)
  • I know what Identity Verification History records: what triggered it, the method, the status. (Identity Verification History)
  • I know the Identity Provider Event Log is where to look when Salesforce is the identity provider. (The Identity Provider Event Log)

On the wire (supports IDC-5)

The usual failures (supports IDC-5)

  • I can name the likely cause from the symptom: a Federation ID that differs in case or a space, a callback URL mismatch, a user not approved for the app, an expired or revoked token, a license limit. (When it’s one user, When it’s one app)

Audit (supports AMB-3 and TPI-5)

Acting at the door (supports TPI-5)

The exam is the floor, not the ceiling. These are the habits from this chapter that an architect needs, whether or not a question ever asks about them.

  • Get in first, every time, and check the back door before the bad day.
  • Change one thing at a time, and wait a few minutes after a change to a new app before you change another.
  • Keep one page for every door: symptom, where it shows, cause, fix.
  • Download what you must keep before Salesforce’s horizon: 6 months, 180 days.
  • Know who reads the other side’s logs, and how to reach them.
  • Put dates on one calendar: certificates, token policies, license headroom, Salesforce’s enforcement dates.
  • Treat a captured assertion or token as a secret.
  • Watch a login policy before it blocks anyone, notifications only at first, and keep at least one user on Salesforce’s own login outside it.
TermIn one line
Login HistoryEvery login to the org and its sites, success or the failure’s name; 6 months
Identity Verification HistoryEvery time Salesforce asked someone to prove who they are; 6 months
Identity Provider Event LogLogins Salesforce vouched for or refused as the identity provider; the 50 most recent
Setup Audit TrailChanges to Setup, including the door; 180 days
Session ManagementWho’s logged in now, and the power to end a session
SAML TracerA browser extension that shows the SAML messages as they pass
SAML Assertion ValidatorChecks an assertion against the single sign-on setting
redirect_uri_mismatchThe callback URL the app sent isn’t exactly one on the app
invalid_grantThe OAuth error with many causes; read the description after it
Trace flagWhat tells Salesforce to write a debug log, for a user or a class
Event MonitoringAn add-on (or part of Shield) for login and other events, log files and transaction security
LoginEvent policyA transaction security rule that blocks, asks for MFA, or notifies on a login

Short scenarios in the style of the course. Decide your answer before you open it.

1. Monday morning, nobody can log in through single sign-on. The admins use single sign-on too. What's the first problem?

Nobody can get in to look. Before anything else, someone needs the back door: an admin with a Salesforce password and MFA, the My Domain login page, ?login. That’s why the back door is set up before the bad day: in a larger or critical org, at least one user, usually on one profile, maybe a couple of users, who can bypass single sign-on and use Salesforce’s own login, still locked down with MFA and IP restrictions. In a small org of ten users, the extra license may not be worth it. Reread Three questions, in this order and A rule at the door can lock the door.

2. Everyone stopped logging in through single sign-on on Tuesday. Nobody admits to changing anything. Where do you look?

“Since a date” usually means a change. The Setup Audit Trail shows changes to SAML settings, certificates and My Domain, for 180 days. And check the identity provider’s side: its certificate, its clock. Reread Three questions, in this order and Who changed the door?.

3. One user can't log in by single sign-on. Her colleagues can. Her Federation ID looks right. What would you check, exactly?

The Federation ID character by character, against the Subject in her assertion: “a difference in case or whitespace will cause login to fail.” Then whether she has the permission for single sign-on. Reread When it’s one user.

4. A user says she can't log in, and Login History shows nothing for her at all. What does that tell you?

The request never reached Salesforce as her. Usually the username: a typo, an old one saved in the browser, invisible characters. With single sign-on, the identity provider may have stopped her first. Reread Salesforce’s own order.

5. A developer moves a web app to a new domain, and every login now fails before the user is asked anything. What's the likely error, and where?

redirect_uri_mismatch, sent back on the redirect. The callback URL the app now sends isn’t exactly one on the app. Add the new one, exactly. Reread OAuth: read the error the app got.

6. Just-in-time provisioning has worked for a year. This week, new hires can't get in; existing users can. What would you suspect?

The license limit: JIT error 11. Nobody changed a setting; the licenses ran out. Reread When it’s the people you didn’t expect.

7. Security wants every login from outside the company's countries to need MFA, and an alert. A nightly integration logs in through the API from a cloud server abroad. What happens to it?

With a LoginEvent policy using the MFA action, an API login can’t do MFA, so the action is upgraded to Block: the integration stops. Exclude it by its conditions, or choose a different design. And the policy needs Shield or the Event Monitoring add-on. Reread What it can do.

8. An auditor asks which admins logged in as customers on the site last quarter. Where do you start?

The Setup Audit Trail, which records admins logging in to a site as its users, within its 180 days; with the add-on, LoginAsEvent. Reread Who logged in as someone else?.

The official list of objectives and their weights. Always check the current version before you book an exam.