> ## 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 delegations

> List Agent Vault delegations with the Node.js SDK.

`client.agentVault().delegations.list()` lists the [delegations](https://infisical.com/docs/documentation/platform/agent-vault/sessions-on-behalf-of-users.md) in an Agent Vault project. The client must log in as a user or machine identity with the **Admin** role in the [Agent Vault project](https://infisical.com/docs/documentation/platform/agent-vault/access-control#product-membership).

## Parameters

**options** `object` *required*

**properties**

**projectId** `string` *required*

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

**machineIdentityIds** `string[]`

The IDs of the machine identities whose delegations to list (up to 100).

**limit** `number`

The maximum number of delegations to return, from 1 to 100 (defaults to `100`).

**offset** `number`

The number of delegations to skip (defaults to `0`).

## Returns

**result** `ListAgentVaultDelegationsResponse`

The delegations in `delegations`, and the total number of matching delegations in `totalCount` (without `missingAccessBundles`, which `get` returns).

```typescript Basic theme={"dark"}
const { delegations, totalCount } = await client.agentVault().delegations.list({
  projectId: "<project-id>",
  machineIdentityIds: ["<machine-identity-id>"], // Optional
  limit: 100, // Optional
  offset: 0 // Optional
});
```

```json Response theme={"dark"}
{
  "delegations": [
    {
      "machineIdentity": {
        "id": "c3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7f",
        "name": "deploy-bot"
      },
      "scope": "selected",
      "users": [
        {
          "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
          "username": "jsmith@example.com",
          "email": "jsmith@example.com",
          "firstName": "Jo",
          "lastName": "Smith",
          "addedAt": "2026-11-20T10:00:00.000Z"
        }
      ],
      "groups": [],
      "createdAt": "2026-11-20T10:00:00.000Z",
      "updatedAt": "2026-11-20T10:00:00.000Z"
    }
  ],
  "totalCount": 1
}
```


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