Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

ACL WHOAMI

Last updated
ACL WHOAMI
Group
ACL
Complexity
O(1)
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

ACL WHOAMI returns the user the current connection runs as. A connection that has not called AUTH or HELLO with credentials runs as default.

Bulk string in RESP2 and RESP3.

127.0.0.1:6379> ACL WHOAMI
"default"
127.0.0.1:6379> AUTH alice s3cret
OK
127.0.0.1:6379> ACL WHOAMI
"alice"

Same as Redis 7 and Valkey 8.

AUTH, ACL USERS