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

# Vault Sharing API: Share a Vault With People and Groups

> Read and replace the people and groups a vault is shared with using the OneCLI API. A personal vault cannot be shared. Cloud only.

A vault you make is yours alone until it is shared. Sharing names the people and groups who can use it. A personal vault cannot be shared.

Use these endpoints to read and replace the list. They exist on OneCLI Cloud only.

## Related guides

* [Editions: what OneCLI Cloud adds](/docs/api-reference/editions.md)
* [How it works: vaults, the gateway and approvals](/docs/how-it-works.md)

## Endpoints

| Endpoint | Method and path | What it does |
| - | - | - |
| [Read who a vault is shared with](/docs/api-reference/vault-sharing/read-who-a-vault-is-shared-with.md) | `GET /v2/vaults/{id}/access` | The people and groups a vault is shared with. |
| [Replace who a vault is shared with](/docs/api-reference/vault-sharing/replace-who-a-vault-is-shared-with.md) | `PUT /v2/vaults/{id}/access` | Replaces the whole list of people and groups a vault is shared with. |

## Next steps

* [API overview](/docs/api-reference.md): base URLs, authentication, and pagination
* [Errors](/docs/api-reference/errors.md): status codes and the error format
* [Editions](/docs/api-reference/editions.md): which endpoints each edition serves


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