---
title: rpk acl user create
latest-operator-version: v2.1.11-23.3.1
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: December 22, 2024
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
docname: rpk/rpk-acl/rpk-acl-user-create
page-component-name: streaming
page-version: "23.3"
page-component-version: "23.3"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-acl/rpk-acl-user-create.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/23.3/modules/reference/pages/rpk/rpk-acl/rpk-acl-user-create.adoc
page-git-created-date: "2023-05-17"
page-git-modified-date: "2024-04-04"
page-generated-content: none
support-status: past end-of-life
---

# rpk acl user create

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

<!-- Source: https://docs.redpanda.com/streaming/23.3/reference/rpk/rpk-acl/rpk-acl-user-create.md -->

Create a SASL user.

This command creates a single SASL user with the given password, optionally with a custom mechanism. SASL consists of three parts: a username, a password, and a mechanism. The mechanism determines which authentication flow the client will use for this user/pass.

Redpanda currently supports two mechanisms: SCRAM-SHA-256, the default, and SCRAM-SHA-512, which is the same flow but uses sha512 rather than sha256.

Using SASL requires setting `enable_sasl: true` in the redpanda section of your `redpanda.yaml`. Before a created SASL account can be used, you must also create ACLs to grant the account access to certain resources in your cluster. See the acl help text for more info.

## Usage

```bash
rpk acl user create [USER] -p [PASS] [flags]
```

## Flags

| **Value** | **Type** | **Description** |
| --- | --- | --- |
| `-h, --help` | - | Help for create. |
| `--mechanism` | string | SASL mechanism to use for the user you are creating (`scram-sha-256`, `scram-sha-512`, case insensitive) (default: `scram-sha-256`). |
| `--password` | string | New user’s password (NOTE: if using --password for the admin API, use --new-password). |
| `--config` | string | Redpanda or rpk config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. |
| `-X, --config-opt` | stringArray | Override `rpk` configuration settings. See [`rpk -X`](https://docs.redpanda.com/streaming/23.3/reference/rpk/rpk-x-options/) or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. |
| `--format` | string | Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. |
| `--profile` | string | Profile to use. See [`rpk profile`](https://docs.redpanda.com/streaming/23.3/reference/rpk/rpk-profile/rpk-profile/) for more details. |
| `-v, --verbose` | - | Enable verbose logging. |