ACL WHOAMI
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.
Return value
Section titled “Return value”Bulk string in RESP2 and RESP3.
Examples
Section titled “Examples”127.0.0.1:6379> ACL WHOAMI"default"127.0.0.1:6379> AUTH alice s3cretOK127.0.0.1:6379> ACL WHOAMI"alice"Compatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.