

# Entitlement-based discovery in AWS Agent Registry

**Public preview**  
Entitlement-based discovery is in public preview. Features and APIs may change before general availability.

With entitlement-based discovery, you decide which approved records each caller discovers in a registry. You attach a *record visibility configuration* to the registry, and the configuration compares caller attributes with record attributes. Caller attributes include AWS Identity and Access Management (IAM) principal tags and JSON Web Token (JWT) claims. Record attributes include record type and metadata fields. The configuration applies to `SearchDiscoverableRegistryRecords`, `ListDiscoverableRegistryRecords`, `BatchGetDiscoverableRegistryRecord`, and the matching tools on the registry’s Model Context Protocol (MCP) endpoint. Without a record visibility configuration, every authorized caller discovers every approved record that its permissions allow, except [quarantined records](registry-quarantining-records.md).

Entitlement-based discovery is separate from [Policy in Amazon Bedrock AgentCore](policy.md), which controls the tool calls that agents make through an AgentCore Gateway.

**Protect the attributes that a configuration tests**  
A record visibility configuration is only as trustworthy as the attributes that it tests. Callers who can tag their own role or user, pass session tags, or edit their identity provider (IdP) claims can widen what they discover. A session tag overrides a role tag with the same key, regardless of case. Before you rely on a configuration, see [Security considerations for record visibility configurations](registry-record-visibility-security.md).

## How record visibility configurations work
<a name="registry-record-visibility-how"></a>

 AWS Agent Registry first authorizes each discovery request, through IAM or through the registry’s JWT authorizer. Your record visibility configuration then chooses which of the approved records the caller receives. A configuration contains one or more statements. Each statement has an effect, `Allow` or `Deny`, with `principal` tests on the caller and `resource` tests on the record. A caller receives a record when at least one `Allow` statement matches both, and no `Deny` statement does.

A registry has at most one record visibility configuration, and it applies to every discovery caller. That includes callers in the owner’s account and in accounts that you share the registry with. For the complete rules, see [Record visibility configuration evaluation](registry-record-visibility-evaluation.md).

## Example – Discovery by department
<a name="registry-record-visibility-example"></a>

With the following record visibility configuration, each caller discovers the records that carry the caller’s own department label:

```json
{
  "version": "1",
  "statements": [
    {
      "sid": "same-department",
      "effect": "Allow",
      "principal": {
        "iam:principalTag/department": {"Exists": true}
      },
      "resource": {
        "customMetadata/department": {
          "StringEquals": {"ref": "iam:principalTag/department"}
        }
      }
    }
  ]
}
```

The statement applies only to callers that have a `department` principal tag. It matches the records whose `department` metadata field equals that tag’s value.

Suppose that the registry holds three approved records: `finance-mcp` labeled `department=finance`, `legal-mcp` labeled `department=legal`, and `unlabeled-mcp` with no `department` label. The following table shows what three callers receive.


| Caller’s principal tags | Records returned | Why | 
| --- | --- | --- | 
|  `department=finance`  |  `finance-mcp`  | Only that record’s label equals the caller’s tag value. | 
|  `department=legal`  |  `legal-mcp`  | Only that record’s label equals the caller’s tag value. | 
| No `department` tag | None | The statement doesn’t apply to a caller without the tag. | 

No caller receives `unlabeled-mcp`, because a record without a `department` label matches no caller’s tag. To set up and test this configuration yourself, see [Set up and test a record visibility configuration](registry-record-visibility-configure.md).

## What a record visibility configuration does not do
<a name="registry-record-visibility-not"></a>

With a record visibility configuration, you control which approved records a discovery caller receives, and nothing else. Keep the following limits in mind:
+  **It doesn’t grant API permission** – IAM callers still need IAM permissions for the discovery operations. For more information, see [IAM Permissions](registry-iam-permissions.md). JWT callers still need a token that the registry’s JWT authorizer accepts.
+  **It doesn’t filter control-plane record reads** – `GetRegistryRecord` and `ListRegistryRecords` return records under IAM permissions alone. That includes permissions that an AWS Resource Access Manager (AWS RAM) share grants. For more information, see [Restrict the read paths that a record visibility configuration doesn’t filter](registry-record-visibility-security.md#registry-record-visibility-security-paths).
+  **It doesn’t protect the resource that a record describes** – Discovering a record gives a caller its catalog entry, not access to the agent or MCP server. Secure each resource with its own authorization.
+  **It doesn’t exempt the registry owner** – The configuration evaluates callers in the owner’s account like any other caller, so it can hide records from the owner too. For more information, see [Record visibility configurations within authorization](registry-record-visibility-evaluation.md#registry-record-visibility-authorization-layering).
+  **It doesn’t protect secrets in its conditions** – Conditions in the configuration document are access-control settings, not protected customer content. Don’t put secrets or other sensitive information in condition values or field names. For more information, see [Data protection in AWS Agent Registry](registry-data-protection.md).

Only the registry owner’s account can read or change the configuration. Accounts that you share the registry with receive no configuration state. Removing a configuration returns the registry to discovery without a configuration.

## Next steps
<a name="registry-record-visibility-next"></a>

Use the following topics to set up and refine a record visibility configuration:
+  [Set up and test a record visibility configuration](registry-record-visibility-configure.md) – Add a first configuration to an existing registry, test it with representative callers, and remove it.
+  [Record visibility configuration evaluation](registry-record-visibility-evaluation.md) – Learn how statements match and which statements decide whether a caller sees a record.
+  [Record visibility configuration examples](registry-record-visibility-examples.md) – Start from a recipe for a common need, such as department, group, or account access.
+  [Record visibility configuration language reference](registry-record-visibility-language-reference.md) – Look up the document structure, fields, operators, and caller-value references.
+  [Security considerations for record visibility configurations](registry-record-visibility-security.md) – Control who can set the attributes and labels that a configuration trusts.

**Topics**