İçeriğe geç

Study guide

Bu içerik henüz dilinizde mevcut değil.

Study guide for chapter 17 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 has no exam objective of its own. The exam guide aligns to Summer ‘23, before agents. But every idea here uses the exam’s own material: running users and access (Access Management Best Practices), the OAuth flows (Identity Management Concepts and Accepting Third-Party Identity), and customers on a site (Community). Read it as the course’s newest chapter, and check the exam guide’s current version before you book.

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

Who the agent is

Its door

Acting for someone

Across the hops

MCP

Its life

  • I can list what happens to an agent’s identity on its first day, at a review, when something goes wrong, and when it’s retired. (Agents Come and Go)
  • I can trace an agent’s action back to people: the person it acted for, and its owner. (Someone is always accountable)
  • Ask two questions at every arrow: who is this, and who is it acting for?
  • Never an administrator as an agent’s running user.
  • Never a password, never a shared secret where it can be read.
  • Verify before a private action; step up before a risky one.
  • Never forward the original token.
  • Give every agent an owner, and a leaving date.
  • A person approves what matters, in the workflow.
TermIn one line
Running userThe identity an agent acts under, which decides what it can reach
Employee agentAn Agentforce agent that runs as the logged-in user
Service agentAn Agentforce agent for customers, running as its agent user, or as the site user when verified by login
Agent userThe dedicated user a service agent runs as, created with minimal access
Credential-based user verificationPasses a site user’s login to a service agent, so the agent runs as her
VerifiedCustomerIdWhere a service agent keeps a verified customer’s ID, to scope its actions
Public / private actionAn action you’d run for anyone / one that acts for a specific, verified customer
On-behalf-ofExchanging the person’s token at each hop for one scoped to the next service
Server-to-serverA hop that uses the agent’s own identity, because the data isn’t anyone’s
In-task authorizationThe person signs in to another company’s system during the conversation
Confused deputyA component with more access tricked into using it for one with less
MCPThe Model Context Protocol: an open standard for AI apps to call tools
Agentforce RegistryWhere an Agentforce agent’s outside MCP servers are registered

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

1. A service agent on the public website asks a customer for her email and a one-time code, then shows her orders. The team says the agent "only sees her orders because it knows who she is." Is that right?

No. The agent runs as its agent user, and knowing who she is doesn’t limit it: “Context variables tell the agent who the user is but don’t control data access.” Store the verified ID and scope every action to it. Reread Knowing who she is isn’t access.

2. A developer's laptop assistant needs to read and change records as the developer. What door should it use?

A person is there to approve, so the authorization code flow with PKCE, through an external client app, with narrow scopes. Never her password, and no secret stored on the laptop. Reread Never a password, never a shared secret.

3. A nightly agent tidies up stale records. It signs in as the integration user three other integrations share. What's wrong?

Nothing it does can be told apart from the others, and stopping it stops them too. Give it its own integration user, with only what the job needs. Reread As itself, or as someone.

4. An assistant agent passes the user's access token to every agent and tool it calls. Why is that a problem, and what's better?

Every hop now holds a key to everything the assistant could do. Exchange the token at each hop for one scoped to the next service (on-behalf-of), or use the agent’s own identity where the data isn’t the person’s (server-to-server). Reread Two wrong answers.

5. An orchestrator agent can't delete records, but a specialist it calls can. What would you check before go-live?

The effective permissions of the whole chain: the orchestrator must not be able to delete through the specialist. Reread The confused deputy.

6. A team wants an AI app to call Salesforce's hosted MCP servers on a schedule, with no one signed in. Can it?

Not as Salesforce describes them: the hosted MCP servers use the authorization code flow only, with “no service accounts, no machine-to-machine flows.” Every connection is a person who approved. Reread Into Salesforce: always a person.

7. An agent was retired last quarter. What should already be gone?

Its user, its permission sets, its external client apps and their tokens, and its MCP connections; leaving has to reach everything. Reread The leaving date.

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