Home icon

Fine-grained access control for Amazon Bedrock Managed Knowledge Base tools

Machine Learning Blog



This article demonstrates how to implement fine-grained access control for shared AI agents using Amazon Bedrock Managed Knowledge Base, ensuring each user can only search documents they're authorized to view.

  • Use ACL awareness in Managed Knowledge Base to return only documents the authenticated user is allowed to view
  • Inject verified user identity from JWT tokens into tool calls via request interceptors on AgentCore Gateway
  • Validate injected userContext against JWT claims using Cedar policies in Policy in AgentCore
  • Restrict knowledge base access with resource-based policies to deny searches from unauthorized principals
  • Combine multiple defense layers to prevent LLM spoofing and unauthorized access attempts
  • Deploy sample architecture with AWS CDK supporting multi-tenant scenarios and department-level access control

The solution prevents unauthorized document disclosure in multi-tenant environments by ensuring the LLM cannot decide user identity, with verified credentials injected at the gateway layer and validated at both tool and resource layers.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Sep 9
2026
Amazon Bedrock Managed Knowledge Base adds APIs and console support for debugging document-level access control
Nov 9
2026
Single-shot and agentic retrieval with Amazon Bedrock Managed Knowledge Base
Jun 17
2026
Amazon Bedrock Managed Knowledge Base is now generally available
Aug 28
2026
Amazon Bedrock AgentCore Memory now supports fine-grained access control

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.