Security
An AI agent uses a shared application role to retrieve invoices through a tool. Users may retrieve only their own invoices. Which control should the developer implement?
Show the answer
Correct answerB. Authorize each tool request against the authenticated user
AWhy not this: Redaction can hide identifiers but does not prevent unauthorized invoice retrieval.
BWhy this is right: Checking the authenticated user's rights at the tool boundary prevents access beyond that user's permissions.
CWhy not this: Model instructions are not a security boundary and cannot replace enforced access checks.
DWhy not this: Private connectivity protects the network path, not access to individual invoices.
The tool must enforce the authenticated user's access rights before retrieving an invoice. Model instructions can guide behavior but cannot enforce authorization.