Back to Redis

ACL WHOAMI

content/commands/acl-whoami.md

latest1.1 KB
Original Source

Return the username the current connection is authenticated with. New connections are authenticated with the "default" user. They can change user using [AUTH]({{< relref "/commands/auth" >}}).

Examples

> ACL WHOAMI
"default"

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | Not supported for [scripts]({{<relref "/develop/programmability">}}). |

Return information

{{< multitabs id="acl-whoami-return-info" tab1="RESP2" tab2="RESP3" >}}

Bulk string reply: the username of the current connection.

-tab-sep-

Bulk string reply: the username of the current connection.

{{< /multitabs >}}