Verify channel identity and action access
Connect channels and determine whose permissions apply to a record operation.
Verify channel identity and action access
Work through the decision
A website visitor types a dealer name and asks an Agentforce Service Agent for a repair invoice. Its dedicated agent user can read invoices across the region. Does the supplied name authorize the lookup?
Check your reasoning
Use the channel’s supported verification flow to establish customer identity. Bind the resulting verified ID to the record lookup and enforce ownership at the action boundary. On an unauthenticated service channel the agent user’s permissions define what it can access. A visitor’s statement or a messaging context field is insufficient proof of ownership.
Compare the choices
- Dedicated agent user
- On an unauthenticated service channel the configured agent user needs minimum necessary object, field and action access. Also scope individual customer requests to their verified records.
- Logged-in user
- An Employee Agent generally runs with the signed-in employee’s permissions. Supported credential-based verification on Experience Cloud can also make the site user the execution identity.
- Verified customer record filter
- Bind a trusted verified identity to an ownership check in the record operation. Reject missing identities and records belonging to another customer.
- Flow execution context
- Inspect the run mode and record and field checks in the invoked automation. A flow can have different effective privileges from its caller.
- Channel connection and routing
- Configure the supported connection, audience, deployment and routing for the chosen channel. Test escalation and unavailability where people actually converse.
Test the decision
For web messaging, configure the agent connection, deployment, routing and escalation to a staffed queue. Email needs the supported service routing and verified addresses. For Slack, verify workspace and channel access. For voice, test fallback and human transfer. Repeat a record test under each actual running identity and check any invoked flow’s execution context.
Trace a service action from channel to record
Begin with a public chat and a claim shared with the agent user. Verify the customer through the supported channel, bind that verified identity to the lookup, and inspect its execution mode. Repeat with an authenticated site channel using credential-based user verification. Record the principal and the enforced record filter in each run.
Salesforce Developers · action execution contexts
Practice the guide skills
- Compare a website chat deployment and escalation queue, an Email-to-Case route, a Slack connection and a voice handoff. Test reachability and fallback for the intended channel. Watch 1:15:35
- Trace the running identity through an Employee Agent, an unauthenticated Service Agent and a credential-verified site experience. Inspect sharing, field access, flow execution mode and the record-ownership check. Watch 1:17:42
Official objectives for this lesson
Lab · Authorize a claim lookup
Run the Python 3 model with a public service channel and a read-only claims action. A session must have a verified dealer, the runtime principal must be able to read claims, and the claim must belong to that dealer. Predict each result before running it.
claims = {"W10": ("north", "received"), "W20": ("south", "approved")}
actors = {"warranty-bot": {"claim.read"}, "catalog-bot": {"catalog.read"}}
def lookup(actor, verified_dealer, claim_id):
if not verified_dealer:
return "verify dealer"
if "claim.read" not in actors.get(actor, set()):
return "action unavailable"
record = claims.get(claim_id)
if record is None or record[0] != verified_dealer:
return "claim unavailable"
return record[1]
checks = [
("anonymous", "warranty-bot", None, "W10"),
("own claim", "warranty-bot", "north", "W10"),
("other dealer", "warranty-bot", "north", "W20"),
("unknown claim", "warranty-bot", "north", "W99"),
("restricted actor", "catalog-bot", "north", "W10"),
]
for name, actor, dealer, claim_id in checks:
print(name, "->", lookup(actor, dealer, claim_id))
Check the result
anonymous -> verify dealer own claim -> received other dealer -> claim unavailable unknown claim -> claim unavailable restricted actor -> action unavailable
Switch the verified dealer to south on the third row and rerun it. Test that unknown and out-of-scope claim IDs receive the same answer. The fixture takes verified identity from a trusted harness. In Salesforce, validate the actual channel, customer verification, sharing, field permissions and the execution mode of the invoked flow.
Related lesson · Govern data and promote a solution
Verify channel identity and action access quiz
Answer 3 questions. Check each answer for an explanation.