﻿---
title: stack kb agent-builder put-agent-builder-conversations-conversation-id-access-control cli command
description: Update a conversation's access control Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/stack/kb/agent-builder/put-agent-builder-conversations-conversation-id-access-control
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb agent-builder put-agent-builder-conversations-conversation-id-access-control cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb agent-builder put-agent-builder-conversations-conversation-id-access-control \
  --conversation-id <conversation-id> \
  --access-mode <access-mode> \
  --entries <entries> \
  [options]
```

Update a conversation's access control
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--conversation-id string required">
    The unique identifier of the conversation whose access control to update.
  </definition>
  <definition term="--access-mode enum required">
    Access-control mode: `private` (only the owner and the listed members can read and continue the conversation), `public` (any user with access to the conversation's agent can read and continue it).
    **Values:** private, public
  </definition>
  <definition term="--entries string[] required">
    Members to share the conversation with. The list replaces the stored one; submit an empty list to unshare. Entries naming the owner are ignored. Must be empty when `access_mode` is `public`; repeated ids are rejected.
    **Repeatable:** pass `--entries` multiple times to supply more than one value
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>