> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List access bundles

> List Agent Vault access bundles with the Python SDK.

`client.agent_vault.access_bundles.list()` lists the [access bundles](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md) in an Agent Vault project. If the client logs in as a member, `list` returns only the access bundles granted to the member.

If you pass `on_behalf_of_user_email` or `on_behalf_of_user_id`, the client must log in as a machine identity with a [delegation](https://infisical.com/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.md#set-up-a-delegation) that covers the user. `list` then returns only the access bundles that both the user and the machine identity can use, and `requires_setup` and `servicesRequiringSetup` refer to the user's personal values. You can't combine `on_behalf_of_user_email` or `on_behalf_of_user_id` with `granted`.

## Parameters

**project\_id** `str` *required*

The ID of the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/projects.md#find-the-project-id) to list access bundles from.

**search** `str`

Text to find in access bundle names and descriptions.

**requires\_setup** `bool`

`True` to list only the access bundles with services that still need your [personal values](https://infisical.com/docs/documentation/platform/agent-vault/access-bundles.md#set-up-your-personal-values), or `False` to list the rest (defaults to listing both).

**granted** `bool`

`True` to list only the access bundles granted to you directly or through a group, or `False` to list the ones you can use only because you're an admin (defaults to listing both).

**on\_behalf\_of\_user\_email** `str`

The email address of a user, to list the access bundles that a session on behalf of the user could use (raises a `ValueError` if you also pass `on_behalf_of_user_id`).

**on\_behalf\_of\_user\_id** `str`

The ID of a user, to list the access bundles that a session on behalf of the user could use (raises a `ValueError` if you also pass `on_behalf_of_user_email`).

**order\_by** `str`

What to sort the access bundles by, `name`, `serviceCount`, or `createdAt` (defaults to `createdAt`).

**order\_direction** `str`

The direction to sort in, `asc` or `desc` (defaults to `desc`).

**limit** `int`

The maximum number of access bundles to return, from 1 to 100 (defaults to `20`).

**offset** `int`

The number of access bundles to skip (defaults to `0`).

## Returns

**response** `ListAgentVaultAccessBundlesResponse`

The access bundles in `accessBundles`, and the total number of matching access bundles in `totalCount` (in each access bundle, `servicesRequiringSetup` lists the services that still need your personal values).

```python Basic theme={"dark"}
response = client.agent_vault.access_bundles.list(project_id="<project-id>")
```

```python With filters theme={"dark"}
response = client.agent_vault.access_bundles.list(
    project_id="<project-id>",
    search="release",
    requires_setup=False,
    granted=True,
    order_by="name",
    order_direction="asc",
    limit=20,
    offset=0,
)
```

```python On behalf of a user theme={"dark"}
response = client.agent_vault.access_bundles.list(
    project_id="<project-id>",
    on_behalf_of_user_email="<user-email>",
    requires_setup=False,
)
```

```json Response theme={"dark"}
{
  "accessBundles": [
    {
      "id": "e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b",
      "name": "release",
      "description": "Release and deploy tools",
      "serviceCount": 2,
      "memberCount": 4,
      "hostPatterns": ["api.github.com", "pypi.org"],
      "servicesRequiringSetup": [],
      "createdAt": "2026-11-18T14:22:10.000Z",
      "updatedAt": "2026-11-25T09:41:37.000Z"
    }
  ],
  "totalCount": 1
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.